gnutls/gnutls-3.7.2-doc-hash-copy.patch
Daiki Ueno 99deb50ba7 Drop support for GNUTLS_NO_EXPLICIT_INIT envvar
Also expand documentation of gnutls_{hash,hmac}_copy, mentioning that
those do not always work.

Resolves: #1999639
Signed-off-by: Daiki Ueno <dueno@redhat.com>
2021-12-22 08:54:15 +01:00

45 lines
1.7 KiB
Diff

From 7b68571f43b68085ba9f36afb1e3e97b3ba8d2d5 Mon Sep 17 00:00:00 2001
From: rpm-build <rpm-build>
Date: Wed, 22 Dec 2021 08:16:27 +0100
Subject: [PATCH 2/2] Update documentation of gnutls_{hash,hmac}_copy
Signed-off-by: rpm-build <rpm-build>
---
doc/functions/gnutls_hash_copy | 4 +++-
doc/functions/gnutls_hmac_copy | 4 +++-
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/doc/functions/gnutls_hash_copy b/doc/functions/gnutls_hash_copy
index 600c0e7..aac7d5d 100644
--- a/doc/functions/gnutls_hash_copy
+++ b/doc/functions/gnutls_hash_copy
@@ -8,7 +8,9 @@
This function will create a copy of Message Digest context, containing all
its current state. Copying contexts for Message Digests registered using
@code{gnutls_crypto_register_digest()} is not supported and will always result in
-an error.
+an error. In addition to that, some of the Message Digest implementations do
+not support this operation. Applications should check the return value and
+provide a proper fallback.
@strong{Returns:} new Message Digest context or NULL in case of an error.
diff --git a/doc/functions/gnutls_hmac_copy b/doc/functions/gnutls_hmac_copy
index a219b21..93b20d5 100644
--- a/doc/functions/gnutls_hmac_copy
+++ b/doc/functions/gnutls_hmac_copy
@@ -8,7 +8,9 @@
This function will create a copy of MAC context, containing all its current
state. Copying contexts for MACs registered using
@code{gnutls_crypto_register_mac()} is not supported and will always result in an
-error.
+error. In addition to that, some of the MAC implementations do not support
+this operation. Applications should check the return value and provide a
+proper fallback.
@strong{Returns:} new MAC context or NULL in case of an error.
--
2.31.1