RSA Security logo

RSA BSAFE Cert-C
API Reference

altname.h

Go to the documentation of this file.
00001 /*
00002 ** Copyright (c) 2000-2002, RSA Security Inc.
00003 **
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 
00016 #ifndef _ALTNAME_H_
00017 #define _ALTNAME_H_ 1
00018 
00019 #include "basetype.h"
00020 #include "certext.h"
00021 
00022 #ifdef __cplusplus
00023 extern "C" {
00024 #endif
00025 
00048 int C_CopyGeneralName(
00049   GENERAL_NAME  *newGenName,    /* (out)  new  GENERAL_NAME structure */
00050   GENERAL_NAME  *oldGenName);   /* (in) orig GENERAL_NAME structure */
00051 
00064 void C_FreeGeneralName(
00065   GENERAL_NAME  *genName);      /* (mod) GENERAL_NAME data structure */
00066 
00098 int C_BERDecodeGeneralName(
00099   CERTC_CTX      ctx,           /* (in)  Cert-C context              */
00100   unsigned char *inputBER,      /* (in)  encoded GENERAL_NAME        */
00101   unsigned int   inputLen,      /* (in)  len of the encoding         */
00102   GENERAL_NAME  *genName);      /* (out) GENERAL_NAME data structure */
00103 
00126 int C_DEREncodeGeneralName(
00127   CERTC_CTX       ctx,          /* (in)  Cert-C context         */
00128   GENERAL_NAME   *genName,      /* (in)  GENERAL_NAME structure */
00129   unsigned char **outputDER,    /* (out) Alloced, encoded value */
00130   unsigned int   *outputLen);   /* (out) len of encoded value   */
00131 
00132 #ifdef __cplusplus
00133 }
00134 #endif
00135 
00136 #endif /* _ALTNAME_H_ */



RSA BSAFE® Cert-C 2.7 API Reference