Constify various mostly X509-related parameter types in crypto/ and apps/
[openssl.git] / crypto / cmp / cmp_hdr.c
index 9d6d6ceb2c5c285cdf7275c9174977192301d98a..4c213aa891c1f9c6a83387c093746e01ae219974 100644 (file)
@@ -266,8 +266,8 @@ int ossl_cmp_hdr_has_implicitConfirm(const OSSL_CMP_PKIHEADER *hdr)
 /* fill in all fields of the hdr according to the info given in ctx */
 int ossl_cmp_hdr_init(OSSL_CMP_CTX *ctx, OSSL_CMP_PKIHEADER *hdr)
 {
-    X509_NAME *sender;
-    X509_NAME *rcp = NULL;
+    const X509_NAME *sender;
+    const X509_NAME *rcp = NULL;
 
     if (!ossl_assert(ctx != NULL && hdr != NULL))
         return 0;