summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2005-03-29 07:22:29 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2005-03-29 07:22:29 +0000
commita2304f1b91e649c9aeb74b1300d81d5a6b1da752 (patch)
tree3963f8c86f3d66651197e83ba4ff11e48bc62a0e /includes
parent09c52310f8c27186bc2ca5893785523018bb0e0e (diff)
downloadgnutls-a2304f1b91e649c9aeb74b1300d81d5a6b1da752.tar.gz
more improvments to gnutls_x509_crt_list_import()
Diffstat (limited to 'includes')
-rw-r--r--includes/gnutls/x509.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/gnutls/x509.h b/includes/gnutls/x509.h
index 65b1c9c1b2..85062889c5 100644
--- a/includes/gnutls/x509.h
+++ b/includes/gnutls/x509.h
@@ -69,6 +69,7 @@ extern "C" {
/* Key purpose Object Identifiers.
*/
#define GNUTLS_KP_TLS_WWW_SERVER "1.3.6.1.5.5.7.3.1"
+#define GNUTLS_KP_TLS_WWW_CLIENT "1.3.6.1.5.5.7.3.2"
#define GNUTLS_KP_CODE_SIGNING "1.3.6.1.5.5.7.3.3"
#define GNUTLS_KP_EMAIL_PROTECTION "1.3.6.1.5.5.7.3.4"
#define GNUTLS_KP_TIME_STAMPING "1.3.6.1.5.5.7.3.8"
@@ -79,7 +80,7 @@ extern "C" {
*/
typedef enum gnutls_certificate_import_flags {
- GNUTLS_X509_CRT_IMPORT_LIST_FAIL_IF_EXCEED=1
+ GNUTLS_X509_CRT_LIST_IMPORT_FAIL_IF_EXCEED=1
/* Fail if the certificates in the buffer are more than
* the space allocated for certificates. The error code
* will be GNUTLS_E_SHORT_MEMORY_BUFFER.
@@ -90,7 +91,7 @@ int gnutls_x509_crt_init(gnutls_x509_crt_t * cert);
void gnutls_x509_crt_deinit(gnutls_x509_crt_t cert);
int gnutls_x509_crt_import(gnutls_x509_crt_t cert, const gnutls_datum_t * data,
gnutls_x509_crt_fmt_t format);
-int gnutls_x509_crt_list_import(gnutls_x509_crt_t *certs, unsigned int cert_max,
+int gnutls_x509_crt_list_import(gnutls_x509_crt_t *certs, unsigned int *cert_max,
const gnutls_datum_t * data, gnutls_x509_crt_fmt_t format, unsigned int flags);
int gnutls_x509_crt_export( gnutls_x509_crt_t cert,
gnutls_x509_crt_fmt_t format, void* output_data, size_t* output_data_size);