diff options
Diffstat (limited to 'doc/functions/gnutls_x509_crt_sign')
-rw-r--r-- | doc/functions/gnutls_x509_crt_sign | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/functions/gnutls_x509_crt_sign b/doc/functions/gnutls_x509_crt_sign new file mode 100644 index 0000000..6a465b9 --- /dev/null +++ b/doc/functions/gnutls_x509_crt_sign @@ -0,0 +1,19 @@ + + + + +@deftypefun {int} {gnutls_x509_crt_sign} (gnutls_x509_crt_t @var{crt}, gnutls_x509_crt_t @var{issuer}, gnutls_x509_privkey_t @var{issuer_key}) +@var{crt}: a certificate of type @code{gnutls_x509_crt_t} + +@var{issuer}: is the certificate of the certificate issuer + +@var{issuer_key}: holds the issuer's private key + +This function is the same a @code{gnutls_x509_crt_sign2()} with no flags, +and an appropriate hash algorithm. The hash algorithm used may +vary between versions of GnuTLS, and it is tied to the security +level of the issuer's public key. + +@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS} (0) is returned, otherwise a +negative error value. +@end deftypefun |