]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
Deprecated gnutls_x509_crq_sign2() and gnutls_x509_crq_sign() in
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 15 Jan 2011 18:17:24 +0000 (19:17 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Sat, 15 Jan 2011 18:17:24 +0000 (19:17 +0100)
favor for gnutls_x509_crq_privkey_sign().

NEWS
lib/includes/gnutls/compat.h
lib/includes/gnutls/x509.h
lib/x509/crq.c

diff --git a/NEWS b/NEWS
index 844e76764e221dc6da6b7fe53a0a2999442b8be0..f19ecb5184418a0ac2f1effe664c4d393098b762 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -30,6 +30,8 @@ gnutls_pubkey_import_privkey: ADDED
 gnutls_pubkey_verify_data: ADDED
 gnutls_privkey_sign_hash2: ADDED
 gnutls_privkey_sign_data2: ADDED (in place of gnutls_privkey_sign_data)
+gnutls_x509_crq_sign2: DEPRECATED
+gnutls_x509_crq_sign: DEPRECATED
 gnutls_x509_privkey_sign_data: DEPRECATED
 gnutls_x509_privkey_sign_hash: DEPRECATED
 gnutls_x509_privkey_verify_data: DEPRECATED
index befae6f1edddd5881f4357cb154797a193de9074..f698af8ef0a6a283b71189805da07e3161cb212b 100644 (file)
@@ -271,6 +271,14 @@ gnutls_sign_callback_get (gnutls_session_t session, void **userdata)
                                                     * hash,
                                                     unsigned int *mand)
                                                     _GNUTLS_GCC_ATTR_DEPRECATED;
+  /* gnutls_x509_crq_privkey_sign() */
+  int gnutls_x509_crq_sign2 (gnutls_x509_crq_t crq,
+                             gnutls_x509_privkey_t key,
+                             gnutls_digest_algorithm_t dig,
+                             unsigned int flags)
+                             _GNUTLS_GCC_ATTR_DEPRECATED;
+  int gnutls_x509_crq_sign (gnutls_x509_crq_t crq, gnutls_x509_privkey_t key)
+                              _GNUTLS_GCC_ATTR_DEPRECATED;
 
 
 #endif /* _GNUTLS_COMPAT_H */
index 579bb9160547db887cc990d9a8964c4057520201..e6866ed540fa886ade0592e758afbab0ec5e0568 100644 (file)
@@ -741,11 +741,6 @@ extern "C"
   int gnutls_x509_crq_get_version (gnutls_x509_crq_t crq);
   int gnutls_x509_crq_set_key (gnutls_x509_crq_t crq,
                                gnutls_x509_privkey_t key);
-  int gnutls_x509_crq_sign2 (gnutls_x509_crq_t crq,
-                             gnutls_x509_privkey_t key,
-                             gnutls_digest_algorithm_t dig,
-                             unsigned int flags);
-  int gnutls_x509_crq_sign (gnutls_x509_crq_t crq, gnutls_x509_privkey_t key);
 
   int gnutls_x509_crq_set_challenge_password (gnutls_x509_crq_t crq,
                                               const char *pass);
index 577d7e2c3cb758624a32234eba9a0949b5b12b6d..e96facb4e981d8369d107c9aa530fa668c4b6351 100644 (file)
@@ -1003,6 +1003,8 @@ gnutls_x509_crq_set_challenge_password (gnutls_x509_crq_t crq,
  * the digest algorithm to use with the specified public key
  * algorithm.
  *
+ * Deprecated: Use gnutls_x509_crq_privkey_sign() instead.
+ *
  * Returns: %GNUTLS_E_SUCCESS on success, otherwise an error.
  *   %GNUTLS_E_ASN1_VALUE_NOT_FOUND is returned if you didn't set all
  *   information in the certificate request (e.g., the version using
@@ -1051,7 +1053,7 @@ fail:
   return result;
 }
 
-/**
+/*-
  * gnutls_x509_crq_sign:
  * @crq: should contain a #gnutls_x509_crq_t structure
  * @key: holds a private key
@@ -1061,7 +1063,7 @@ fail:
  *
  * Returns: On success, %GNUTLS_E_SUCCESS is returned, otherwise a
  *   negative error value.
**/
-*/
 int
 gnutls_x509_crq_sign (gnutls_x509_crq_t crq, gnutls_x509_privkey_t key)
 {