summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2005-03-28 21:11:28 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2005-03-28 21:11:28 +0000
commit09c52310f8c27186bc2ca5893785523018bb0e0e (patch)
tree37313f931db26182339278b05f7c7699a9f66629 /includes
parent1b4aea5ccb9781ad7d6f92f5b9011996f2ade3a9 (diff)
downloadgnutls-09c52310f8c27186bc2ca5893785523018bb0e0e.tar.gz
improved gnutls_x509_crt_list_import().
Diffstat (limited to 'includes')
-rw-r--r--includes/gnutls/x509.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/includes/gnutls/x509.h b/includes/gnutls/x509.h
index b89a44ef64..65b1c9c1b2 100644
--- a/includes/gnutls/x509.h
+++ b/includes/gnutls/x509.h
@@ -69,7 +69,6 @@ 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,6 +78,14 @@ extern "C" {
/* Certificate handling functions
*/
+typedef enum gnutls_certificate_import_flags {
+ GNUTLS_X509_CRT_IMPORT_LIST_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.
+ */
+} gnutls_certificate_import_flags;
+
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,