favor for gnutls_x509_crq_privkey_sign().
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
* 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 */
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);
* 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
return result;
}
-/**
+/*-
* gnutls_x509_crq_sign:
* @crq: should contain a #gnutls_x509_crq_t structure
* @key: holds a private key
*
* 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)
{