**/
int
gnutls_openpgp_extract_certificate_dn( const gnutls_datum *cert,
- gnutls_dn *dn )
+ gnutls_openpgp_name *dn )
{
PKT pkt = NULL;
PKT_userid *uid = NULL;
{
rc = GNUTLS_E_UNKNOWN_ERROR;
goto leave;
- }
- strcpy( dn->common_name, uid->name );
+ }
+ memset(dn, 0, sizeof *dn);
+ strcpy( dn->name, uid->name );
/*
* Extract the email address from the userID string and save it to
char* CERTFILE,
char* KEYFILE);
int gnutls_openpgp_extract_certificate_dn( const gnutls_datum *cert,
- gnutls_dn *dn);
+ gnutls_openpgp_name *dn);
int gnutls_openpgp_extract_certificate_version( const gnutls_datum *cert );
time_t gnutls_openpgp_extract_certificate_activation_time(
const gnutls_datum
} gnutls_x509_dn;
#define gnutls_DN gnutls_x509_dn
+typedef struct {
+ char name[GNUTLS_X509_CN_SIZE];
+ char email[GNUTLS_X509_CN_SIZE];
+} gnutls_openpgp_name;
+
/* For key Usage, test as:
* if (st.keyUsage & X509KEY_DIGITAL_SIGNATURE) ...
*/