From: Frank Lichtenheld <[email protected]>

Usage introduced in commit
a384115456c190ec7c7ec5cdfae1624d6d196f31
("Reject certificates with too large serial numbers").

Change-Id: Ic4a2611bcd77f2c00fe9176ea034996cd35f7988
Signed-off-by: Frank Lichtenheld <[email protected]>
Acked-by: Razvan Cojocaru <[email protected]>
Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2406
---

This change was reviewed on Gerrit and approved by at least one
developer. I request to merge it to release/2.6.

Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/2406
This mail reflects revision 2 of this Change.

Acked-by according to Gerrit (reflected above):
Razvan Cojocaru <[email protected]>

        
diff --git a/src/openvpn/openssl_compat.h b/src/openvpn/openssl_compat.h
index 03ece13..42cd999 100644
--- a/src/openvpn/openssl_compat.h
+++ b/src/openvpn/openssl_compat.h
@@ -208,6 +208,18 @@
 }
 
 /**
+ * Get the serial number from a X509 certificate
+ *
+ * @param x                  X509 certificate
+ * @return                   The certificate serial number
+ */
+static inline const ASN1_INTEGER *
+X509_get0_serialNumber(const X509 *x)
+{
+    return (const ASN1_INTEGER *)X509_get_serialNumber((X509 *)x);
+}
+
+/**
  * Fetch the X509 object stack from the X509 store
  *
  * @param store              X509 object store


_______________________________________________
Openvpn-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openvpn-devel

Reply via email to