summaryrefslogtreecommitdiff
path: root/lib/x509asn1.c
diff options
context:
space:
mode:
authorAlessandro Ghedini <alessandro@ghedini.me>2015-03-20 19:03:53 +0100
committerPatrick Monnerat <pm@datasphere.ch>2015-03-20 19:03:53 +0100
commita332922a526f91876fc8ffa73a45322800bf0e73 (patch)
tree33badf13abc58ef5cda72707d251823b1cce430a /lib/x509asn1.c
parent8854f8d45a5cef688377c29e49e8d8b2bd668ee4 (diff)
downloadcurl-a332922a526f91876fc8ffa73a45322800bf0e73.tar.gz
gtls: implement CURLOPT_CERTINFO
Diffstat (limited to 'lib/x509asn1.c')
-rw-r--r--lib/x509asn1.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/x509asn1.c b/lib/x509asn1.c
index 4d50f0e0c..8b32d6bf7 100644
--- a/lib/x509asn1.c
+++ b/lib/x509asn1.c
@@ -22,7 +22,7 @@
#include "curl_setup.h"
-#if defined(USE_GSKIT) || defined(USE_NSS)
+#if defined(USE_GSKIT) || defined(USE_NSS) || defined(USE_GNUTLS)
#include <curl/curl.h>
#include "urldata.h"
@@ -209,7 +209,6 @@ static const char * octet2str(const char * beg, const char * end)
}
static const char * bit2str(const char * beg, const char * end)
-
{
/* Convert an ASN.1 bit string to a printable string.
Return the dynamically allocated string, or NULL if an error occurs. */
@@ -1024,7 +1023,7 @@ CURLcode Curl_extract_certinfo(struct connectdata * conn,
return CURLE_OK;
}
-#endif /* USE_GSKIT or USE_NSS */
+#endif /* USE_GSKIT or USE_NSS or USE_GNUTLS */
#if defined(USE_GSKIT)