RSA BSAFE Cert-C

Certificate Components for C

Crypto-C 6.2.1 Developer's Guide
Search

certname.h

Go to the documentation of this file.
00001 /* $Id: certname.h,v 1.8 2005/01/11 04:43:44 jmckee Exp $ */
00002 /*
00003 * Copyright (c) RSA Security Inc., 1999-2003.  All rights reserved.
00004 * This work contains proprietary, confidential, and trade secret
00005 * information of RSA Security Inc.  Use, disclosure or reproduction
00006 * without the express written authorization of RSA Security Inc. is
00007 * prohibited.
00008 */
00009 
00010 #ifndef HEADER_BSAFE_CERTC_CERTNAME
00011 #define HEADER_BSAFE_CERTC_CERTNAME 1
00012 
00019 #include "basetype.h"
00020 
00021 #ifdef __cplusplus
00022 extern "C" {
00023 #endif
00024 
00025 int C_CreateNameObject (
00026   NAME_OBJ *nameObject);
00027 
00028 int C_GetNameDER (
00029   NAME_OBJ        nameObject,
00030   unsigned char **der,
00031   unsigned int   *derLen);
00032 
00033 int C_SetNameBER (
00034   NAME_OBJ       nameObject,
00035   unsigned char *ber,
00036   unsigned int   berLen);
00037 
00038 int C_GetNameAVACount (
00039   NAME_OBJ      nameObject,
00040   unsigned int *count);
00041 
00042 int C_GetNameAVA (
00043   NAME_OBJ        nameObject,
00044   unsigned int    index,
00045   unsigned char **type,
00046   unsigned int   *typeLen,
00047   int            *valueTag,
00048   unsigned char **value,
00049   unsigned int   *valueLen,
00050   int            *newLevel);
00051 
00052 int C_AddNameAVA (
00053   NAME_OBJ       nameObject,
00054   unsigned char *type,
00055   unsigned int   typeLen,
00056   int            valueTag,
00057   unsigned char *value,
00058   unsigned int   valueLen,
00059   int            newLevel,
00060   unsigned int  *index);
00061 
00062 int C_IsSubjectSubordinateToIssuer (
00063   int      *isSubordinate,
00064   NAME_OBJ  subjectNameObject,
00065   NAME_OBJ  issuerNameObject);
00066 
00067 int C_ResetNameObject (
00068   NAME_OBJ nameObject);
00069 
00070 void C_DestroyNameObject (
00071   NAME_OBJ *nameObject);
00072 
00073 int C_GetNameStringReverse (
00074   NAME_OBJ   nameObj,             /* name object to be converted */
00075   char     **nameString);         /* the string form of the name */
00076 
00077 int C_GetNameString (
00078   NAME_OBJ   nameObj,             /* name object to be converted */
00079   char     **nameString);         /* the string form of the name */
00080 
00081 int C_SetNameString (
00082   NAME_OBJ  nameObj,             /* name object to be modified  */
00083   char     *nameString);         /* the string form of the name */
00084 
00085 #ifdef __cplusplus
00086 }
00087 #endif
00088 
00089 #endif /* HEADER_BSAFE_CERTC_CERTNAME */

Copyright (c) 1999-2005 RSA Security Inc. All rights reserved. 067-001001-2720-001-000 - 2.7.2