Imported Upstream version 3.4.11
[platform/upstream/gnutls.git] / doc / functions / gnutls_x509_crt_set_crq
1
2
3
4
5 @deftypefun {int} {gnutls_x509_crt_set_crq} (gnutls_x509_crt_t @var{crt}, gnutls_x509_crq_t @var{crq})
6 @var{crt}: a certificate of type @code{gnutls_x509_crt_t} 
7
8 @var{crq}: holds a certificate request
9
10 This function will set the name and public parameters as well as
11 the extensions from the given certificate request to the certificate. 
12 Only RSA keys are currently supported.
13
14 Note that this function will only set the  @code{crq} if it is self
15 signed and the signature is correct. See @code{gnutls_x509_crq_sign2()} .
16
17 @strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, otherwise a
18 negative error value.
19 @end deftypefun