Index: openssl/crypto/ocsp/ocsp_lib.c |
=================================================================== |
--- openssl/crypto/ocsp/ocsp_lib.c (revision 105093) |
+++ openssl/crypto/ocsp/ocsp_lib.c (working copy) |
@@ -69,6 +69,7 @@ |
#include <openssl/pem.h> |
#include <openssl/x509v3.h> |
#include <openssl/ocsp.h> |
+#include <openssl/asn1t.h> |
/* Convert a certificate and its issuer to an OCSP_CERTID */ |
@@ -169,14 +170,14 @@ |
char *host, *port; |
+ *phost = NULL; |
+ *pport = NULL; |
+ *ppath = NULL; |
+ |
/* dup the buffer since we are going to mess with it */ |
buf = BUF_strdup(url); |
if (!buf) goto mem_err; |
- *phost = NULL; |
- *pport = NULL; |
- *ppath = NULL; |
- |
/* Check for initial colon */ |
p = strchr(buf, ':'); |
@@ -260,3 +261,5 @@ |
return 0; |
} |
+ |
+IMPLEMENT_ASN1_DUP_FUNCTION(OCSP_CERTID) |