diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-02-10 16:51:18 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2003-02-10 16:51:18 +0000 |
commit | 2d62af78d73dc21cfd7c7da0a2d19fc400e51106 (patch) | |
tree | 5ba9279da6fcca4b6e293c2c9b7b0b955cd7ade7 /includes | |
parent | fff5ae5d94e48bdc019f354a537d0fdbece4bc53 (diff) | |
download | gnutls-2d62af78d73dc21cfd7c7da0a2d19fc400e51106.tar.gz |
renamed gnutls_x509_fingerprint to gnutls_fingerprint.
Diffstat (limited to 'includes')
-rw-r--r-- | includes/gnutls/compat8.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/includes/gnutls/compat8.h b/includes/gnutls/compat8.h index 9f16664605..b73feeb665 100644 --- a/includes/gnutls/compat8.h +++ b/includes/gnutls/compat8.h @@ -1,3 +1,31 @@ +#ifndef GNUTLS_COMPAT8_H +# define GNUTLS_COMPAT8_H + +/* Extra definitions */ + +#define GNUTLS_X509_CN_SIZE 256 +#define GNUTLS_X509_C_SIZE 3 +#define GNUTLS_X509_O_SIZE 256 +#define GNUTLS_X509_OU_SIZE 256 +#define GNUTLS_X509_L_SIZE 256 +#define GNUTLS_X509_S_SIZE 256 +#define GNUTLS_X509_EMAIL_SIZE 256 + +typedef struct { + char common_name[GNUTLS_X509_CN_SIZE]; + char country[GNUTLS_X509_C_SIZE]; + char organization[GNUTLS_X509_O_SIZE]; + char organizational_unit_name[GNUTLS_X509_OU_SIZE]; + char locality_name[GNUTLS_X509_L_SIZE]; + char state_or_province_name[GNUTLS_X509_S_SIZE]; + char email[GNUTLS_X509_EMAIL_SIZE]; +} gnutls_x509_dn; + +typedef struct { + char name[GNUTLS_X509_CN_SIZE]; + char email[GNUTLS_X509_CN_SIZE]; +} gnutls_openpgp_name; + int gnutls_x509_extract_dn( const gnutls_datum*, gnutls_x509_dn*); int gnutls_x509_extract_dn_string(const gnutls_datum * idn, char *buf, unsigned int sizeof_buf); @@ -18,3 +46,7 @@ int gnutls_x509_extract_key_pk_algorithm( const gnutls_datum * key); int gnutls_x509_verify_certificate( const gnutls_datum* cert_list, int cert_list_length, const gnutls_datum * CA_list, int CA_list_length, const gnutls_datum* CRL_list, int CRL_list_length); int gnutls_x509_check_certificates_hostname(const gnutls_datum * cert, const char *hostname); + +#define gnutls_x509_fingerprint gnutls_fingerprint + +#endif |