]> git.ipfire.org Git - thirdparty/gnulib.git/commitdiff
crypto/*-buffer: propagate 'const'
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 12 Feb 2026 21:02:48 +0000 (13:02 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 12 Feb 2026 21:38:37 +0000 (13:38 -0800)
Problem reported by Arun Giridhar in:
https://savannah.gnu.org/bugs/index.php?68042
* lib/gl_openssl.h (GL_CRYPTO_FN): Use a const pointer.

ChangeLog
lib/gl_openssl.h

index baaa1f17dad33c527a81efcb3c37f6324d3b2011..d11c9a4a8ce948ba6e434dee1a0303e4ec674501 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2026-02-12  Paul Eggert  <eggert@cs.ucla.edu>
+
+       crypto/*-buffer: propagate 'const'
+       Problem reported by Arun Giridhar in:
+       https://savannah.gnu.org/bugs/index.php?68042
+       * lib/gl_openssl.h (GL_CRYPTO_FN): Use a const pointer.
+
 2026-02-12  Pádraig Brady  <P@draigBrady.com>
 
        parse-datetime: support dd.mm. in combination
index e81c010433480f587ef4f5c587a85ce9f3e74cf1..06fd8f66f9b400755359cd0241c7689fff8446a3 100644 (file)
@@ -103,7 +103,7 @@ GL_OPENSSL_INLINE void *
 GL_CRYPTO_FN (_read_ctx) (const struct _gl_ctx *ctx, void *restrict res)
 {
   /* Assume any unprocessed bytes in ctx are not to be ignored.  */
-  _gl_CTX tmp_ctx = *(_gl_CTX *) ctx;
+  _gl_CTX tmp_ctx = *(_gl_CTX const *) ctx;
   OPENSSL_FN (_Final) ((unsigned char *) res, &tmp_ctx);
   return res;
 }