OCSP library tidy. Use extension to encode OCSP extensions instead of doing
[openssl.git] / crypto / ocsp / ocsp_lib.c
index 27450811d7208529a8ef99b5b089e9ce6c3c0bcc..36905d76cd4249b8838f90683eb7548535b6a8f6 100644 (file)
@@ -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 */
 
@@ -260,3 +261,5 @@ int OCSP_parse_url(char *url, char **phost, char **pport, char **ppath, int *pss
        return 0;
 
        }
+
+IMPLEMENT_ASN1_DUP_FUNCTION(OCSP_CERTID)