Blame doc/functions/gnutls_x509_crt_get_pk_ecc_raw

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {int} {gnutls_x509_crt_get_pk_ecc_raw} (gnutls_x509_crt_t @var{crt}, gnutls_ecc_curve_t * @var{curve}, gnutls_datum_t * @var{x}, gnutls_datum_t * @var{y})
Packit aea12f
@var{crt}: Holds the certificate
Packit aea12f
Packit aea12f
@var{curve}: will hold the curve
Packit aea12f
Packit aea12f
@var{x}: will hold the x-coordinate
Packit aea12f
Packit aea12f
@var{y}: will hold the y-coordinate
Packit aea12f
Packit aea12f
This function will export the ECC public key's parameters found in
Packit aea12f
the given certificate.  The new parameters will be allocated using
Packit aea12f
@code{gnutls_malloc()}  and will be stored in the appropriate datum.
Packit aea12f
Packit aea12f
In EdDSA curves the  @code{y} parameter will be @code{NULL}  and the other parameters
Packit aea12f
will be in the native format for the curve.
Packit aea12f
Packit aea12f
@strong{Returns:} @code{GNUTLS_E_SUCCESS}  on success, otherwise a negative error code.
Packit aea12f
Packit aea12f
@strong{Since:} 3.4.1
Packit aea12f
@end deftypefun