RSA Security logo

RSA BSAFE Cert-C
API Reference

certname.h

Go to the documentation of this file.
00001 /*
00002 * Copyright (c) RSA Security Inc., 1999-2003.  All rights reserved.
00003 * This work contains proprietary, confidential, and trade secret
00004 * information of RSA Security Inc.  Use, disclosure or reproduction
00005 * without the express written authorization of RSA Security Inc. is
00006 * prohibited.
00007 */
00008 
00009 #ifndef HEADER_BSAFE_CERTC_CERTNAME
00010 #define HEADER_BSAFE_CERTC_CERTNAME 1
00011 
00018 #include "basetype.h"
00019 
00020 #ifdef __cplusplus
00021 extern "C" {
00022 #endif
00023 
00037 int C_CreateNameObject (
00038   NAME_OBJ *nameObject);
00039 
00065 int C_GetNameDER (
00066   NAME_OBJ        nameObject,
00067   unsigned char **der,
00068   unsigned int   *derLen);
00069 
00091 int C_SetNameBER (
00092   NAME_OBJ       nameObject,
00093   unsigned char *ber,
00094   unsigned int   berLen);
00095 
00110 int C_GetNameAVACount (
00111   NAME_OBJ      nameObject,
00112   unsigned int *count);
00113 
00174 int C_GetNameAVA (
00175   NAME_OBJ        nameObject,
00176   unsigned int    index,
00177   unsigned char **type,
00178   unsigned int   *typeLen,
00179   int            *valueTag,
00180   unsigned char **value,
00181   unsigned int   *valueLen,
00182   int            *newLevel);
00183 
00245 int C_AddNameAVA (
00246   NAME_OBJ       nameObject,
00247   unsigned char *type,
00248   unsigned int   typeLen,
00249   int            valueTag,
00250   unsigned char *value,
00251   unsigned int   valueLen,
00252   int            newLevel,
00253   unsigned int  *index);
00254 
00277 int C_IsSubjectSubordinateToIssuer (
00278   int      *isSubordinate,
00279   NAME_OBJ  subjectNameObject,
00280   NAME_OBJ  issuerNameObject);
00281 
00295 int C_ResetNameObject (
00296   NAME_OBJ nameObject);
00297 
00315 void C_DestroyNameObject (
00316   NAME_OBJ *nameObject);
00317 
00349 int C_GetNameStringReverse (
00350   NAME_OBJ   nameObj,             /* name object to be converted */
00351   char     **nameString);         /* the string form of the name */
00352 
00377 int C_GetNameString (
00378   NAME_OBJ   nameObj,             /* name object to be converted */
00379   char     **nameString);         /* the string form of the name */
00380 
00398 int C_SetNameString (
00399   NAME_OBJ  nameObj,             /* name object to be modified  */
00400   char     *nameString);         /* the string form of the name */
00401 
00402 #ifdef __cplusplus
00403 }
00404 #endif
00405 
00406 #endif /* HEADER_BSAFE_CERTC_CERTNAME */



RSA BSAFE® Cert-C 2.7 API Reference