Blob Blame History Raw




@deftypefun {int} {gnutls_x509_ext_import_subject_key_id} (const gnutls_datum_t * @var{ext}, gnutls_datum_t * @var{id})
@var{ext}: a DER encoded extension

@var{id}: will contain the subject key ID

This function will return the subject key ID stored in the provided
SubjectKeyIdentifier extension. The ID will be allocated using
@code{gnutls_malloc()} .

@strong{Returns:} On success, @code{GNUTLS_E_SUCCESS}  (0) is returned, @code{GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE} 
if the extension is not present, otherwise a negative error value.

@strong{Since:} 3.3.0
@end deftypefun