summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-09-07 09:13:54 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-09-08 08:55:38 +0200
commitf65ff8a7a19dd3f959bf2bb3ebe1592cce02aceb (patch)
tree6cf40fcdab7b47256fff6ea115713af2eed301d1
parent982e96633c2b76853cf8c129cdcac1a066f7139d (diff)
downloadgnutls-f65ff8a7a19dd3f959bf2bb3ebe1592cce02aceb.tar.gz
gnutls_x509_crl_sign: undeprecate
After the updates of the function semantics, it is no longer needed to deprecate it. Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
-rw-r--r--lib/includes/gnutls/compat.h7
-rw-r--r--lib/includes/gnutls/x509.h4
-rw-r--r--lib/x509/crl_write.c2
3 files changed, 4 insertions, 9 deletions
diff --git a/lib/includes/gnutls/compat.h b/lib/includes/gnutls/compat.h
index 2dbc04a9eb..aa5c5cb10d 100644
--- a/lib/includes/gnutls/compat.h
+++ b/lib/includes/gnutls/compat.h
@@ -187,13 +187,6 @@ int gnutls_x509_crq_sign(gnutls_x509_crq_t crq,
_GNUTLS_GCC_ATTR_DEPRECATED;
-
- /* gnutls_x509_crl_privkey_sign */
-int gnutls_x509_crl_sign(gnutls_x509_crl_t crl,
- gnutls_x509_crt_t issuer,
- gnutls_x509_privkey_t issuer_key)
- _GNUTLS_GCC_ATTR_DEPRECATED;
-
/* use gnutls_privkey_sign_hash() with the GNUTLS_PRIVKEY_SIGN_FLAG_TLS1_RSA flag */
#ifdef _ISOC99_SOURCE
diff --git a/lib/includes/gnutls/x509.h b/lib/includes/gnutls/x509.h
index 86d45dd5c4..23593fd235 100644
--- a/lib/includes/gnutls/x509.h
+++ b/lib/includes/gnutls/x509.h
@@ -399,6 +399,10 @@ int gnutls_x509_crt_set_crl_dist_points(gnutls_x509_crt_t crt,
int gnutls_x509_crt_cpy_crl_dist_points(gnutls_x509_crt_t dst,
gnutls_x509_crt_t src);
+int gnutls_x509_crl_sign(gnutls_x509_crl_t crl,
+ gnutls_x509_crt_t issuer,
+ gnutls_x509_privkey_t issuer_key);
+
int gnutls_x509_crl_sign2(gnutls_x509_crl_t crl,
gnutls_x509_crt_t issuer,
gnutls_x509_privkey_t issuer_key,
diff --git a/lib/x509/crl_write.c b/lib/x509/crl_write.c
index b09887486a..b384aa02c3 100644
--- a/lib/x509/crl_write.c
+++ b/lib/x509/crl_write.c
@@ -151,8 +151,6 @@ gnutls_x509_crl_sign2(gnutls_x509_crl_t crl, gnutls_x509_crt_t issuer,
*
* Returns: On success, %GNUTLS_E_SUCCESS (0) is returned, otherwise a
* negative error value.
- *
- * Deprecated: Use gnutls_x509_crl_privkey_sign().
*/
int
gnutls_x509_crl_sign(gnutls_x509_crl_t crl, gnutls_x509_crt_t issuer,