]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
credentials: Add getter for nonce in OCSP request and response interface
authorTobias Brunner <tobias@strongswan.org>
Fri, 22 Nov 2019 13:59:49 +0000 (14:59 +0100)
committerTobias Brunner <tobias@strongswan.org>
Fri, 6 Dec 2019 08:50:55 +0000 (09:50 +0100)
src/libstrongswan/credentials/certificates/ocsp_request.h
src/libstrongswan/credentials/certificates/ocsp_response.h

index 508a65f3edea4c3625d172b6620f6f2de68042a8..d47514bf4234ecdb0535bf913a2524485d52355d 100644 (file)
@@ -1,4 +1,5 @@
 /*
+ * Copyright (C) 2019 Tobias Brunner
  * Copyright (C) 2008 Martin Willi
  * HSR Hochschule fuer Technik Rapperswil
  *
@@ -34,6 +35,13 @@ struct ocsp_request_t {
         * Implements certificate_t interface
         */
        certificate_t interface;
+
+       /**
+        * Get the nonce sent in this OCSP request.
+        *
+        * @return                                      nonce in the request (internal data)
+        */
+       chunk_t (*get_nonce)(ocsp_request_t *this);
 };
 
 #endif /** OCSP_REQUEST_H_ @}*/
index e701061d79aac363828f4d6ef8f77d0c27f96e69..581c9da2d540ba270631386195d7e50624c2995f 100644 (file)
@@ -1,4 +1,5 @@
 /*
+ * Copyright (C) 2019 Tobias Brunner
  * Copyright (C) 2008 Martin Willi
  * HSR Hochschule fuer Technik Rapperswil
  *
@@ -54,6 +55,13 @@ struct ocsp_response_t {
         */
        certificate_t certificate;
 
+       /**
+        * Get the nonce received with this OCSP response.
+        *
+        * @return                                      nonce in the response (internal data)
+        */
+       chunk_t (*get_nonce)(ocsp_response_t *this);
+
        /**
         * Check the status of a certificate by this OCSP response.
         *