Make settings and options parameters const in recordmethod.h
authorMatt Caswell <matt@openssl.org>
Thu, 7 Apr 2022 16:35:08 +0000 (17:35 +0100)
committerMatt Caswell <matt@openssl.org>
Thu, 18 Aug 2022 15:38:12 +0000 (16:38 +0100)
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18132)

ssl/record/recordmethod.h

index 1ec0b599c2fb9a75369c308f3a5595141ae6768f..22dfa7afe79765ade7b59655498188420f5d4729 100644 (file)
@@ -129,8 +129,9 @@ struct ossl_record_method_st {
                                           int level, unsigned char *secret,
                                           size_t secretlen, SSL_CIPHER *c,
                                           BIO *transport, BIO_ADDR *local,
-                                          BIO_ADDR *peer, OSSL_PARAM *settings,
-                                          OSSL_PARAM *options);
+                                          BIO_ADDR *peer,
+                                          const OSSL_PARAM *settings,
+                                          const OSSL_PARAM *options);
     void (*free)(OSSL_RECORD_LAYER *rl);
 
     int (*reset)(OSSL_RECORD_LAYER *rl); /* Is this needed? */