Certificate
Object Hierarchy:
Description:
[ Compact ]
[ CCode ( cname = "struct gnutls_x509_crt_int" , cprefix = "gnutls_x509_crt_" , free_function = "gnutls_x509_crt_deinit" ) ]
public class Certificate
[ CCode ( cname = "struct gnutls_x509_crt_int" , cprefix = "gnutls_x509_crt_" , free_function = "gnutls_x509_crt_deinit" ) ]
public class Certificate
Namespace: GnuTLS.X509
Package: gnutls
Content:
Static methods:
- public static Certificate create ()
- public static int list_import (Certificate[]? certs, ref uint cert_max, ref Datum data, CertificateFormat format, bool fail_if_exceed)
- public static int list_verify (Certificate[] cert_list, Certificate[] CA_list, Certificate[] CLR_list, CertificateVerifyFlags flags, out CertificateStatus verify)
Methods:
- public bool check_hostname (string hostname)
- public int check_issuer (Certificate issuer)
- public int check_revocation (CRL[] crl_list)
- public int cpy_crl_dist_points (Certificate source)
- public bool dn_oid_known (string oid)
- public int export (CertificateFormat format, void* output, ref size_t output_size)
- public time_t get_activation_time ()
- public int get_authority_key_id (void* ret, ref size_t ret_size, out bool critical)
- public int get_basic_constraints (out bool critical, out int ca, out int pathlen)
- public int get_ca_status (out bool critical)
- public int get_crl_dist_points (uint seq, void* ret, ref size_t ret_size, out RevocationReasons reason_flags, out bool critical)
- public int get_dn (char* buf, ref size_t buf_size)
- public int get_dn_by_oid (string oid, int index, uint raw_flag, void* buf, ref size_t buf_size)
- public int get_dn_oid (int index, void* oid, ref size_t oid_size)
- public time_t get_expiration_time ()
- public int get_extension_by_oid (string oid, int index, void* buf, ref size_t buf_size, out bool critical)
- public int get_extension_data (int index, void* data, ref size_t data_size)
- public int get_extension_info (int index, void* oid, ref size_t oid_size, out bool critical)
- public int get_extension_oid (int index, void* oid, ref size_t oid_size)
- public int get_fingerprint (DigestAlgorithm algo, void* buf, ref size_t buf_size)
- public int get_issuer (out DN dn)
- public int get_issuer_dn (char* buf, ref size_t buf_size)
- public int get_issuer_dn_by_oid (string oid, int index, uint raw_flag, void* buf, ref size_t buf_size)
- public int get_issuer_dn_oid (int index, void* oid, ref size_t oid_size)
- public int get_key_id (uint flags, uchar* output, ref size_t output_size)
- public int get_key_purpose_oid (int index, void* oid, ref size_t oid_size, out bool critical)
- public int get_key_usage (out KeyUsage key_usage, out bool critical)
- public PKAlgorithm get_pk_algorithm (out uint bits)
- public int get_pk_dsa_raw (out Datum p, out Datum q, out Datum g, out Datum y)
- public int get_pk_rsa_raw (out Datum modulus, out Datum exponent)
- public int get_proxy (out bool critical, out int pathlen, out char[] policyLanguage, out char[] policy)
- public int get_raw_dn (out Datum start)
- public int get_raw_issuer_dn (out Datum start)
- public int get_serial (void* result, ref size_t result_size)
- public int get_signature (char* sig, ref size_t sig_size)
- public SignAlgorithm get_signature_algorithm ()
- public int get_subject (out DN dn)
- public int get_subject_alt_name (uint seq, void* ret, ref size_t ret_size, out bool critical)
- public int get_subject_alt_name2 (uint seq, void* ret, ref size_t ret_size, out SubjectAltName ret_type, out bool critical)
- public int get_subject_alt_othername_oid (uint seq, void* ret, ref size_t ret_size)
- public int get_subject_key_id (void* ret, ref size_t ret_size, out bool critical)
- public int get_version ()
- public int import (ref Datum data, CertificateFormat format)
- public int print (CertificatePrintFormats format, out Datum output)
- public int set_activation_time (time_t act_time)
- public int set_authority_key_id (void* id, size_t id_size)
- public int set_basic_constraints (uint ca, int pathLenConstraint)
- public int set_ca_status (uint ca)
- public int set_crl_dist_points (SubjectAltName type, void* data_string, RevocationReasons reason_flags)
- public int set_dn_by_oid (string oid, uint raw_flag, void* name, uint name_size)
- public int set_expiration_time (time_t exp_time)
- public int set_extension_by_oid (string oid, void* buf, size_t buf_size, bool critical)
- public int set_issuer_dn_by_oid (string oid, uint raw_flag, void* name, uint name_size)
- public int set_key (PrivateKey key)
- public int set_key_purpose_oid (string oid, bool critical)
- public int set_key_usage (KeyUsage usage)
- public int set_proxy (int pathLenConstraint, string policyLanguage, uint8[] policy)
- public int set_proxy_dn (Certificate eecrt, uint raw_flag, void* name, uint name_size)
- public int set_serial (void* serial, size_t serial_size)
- public int set_subject_alternative_name (SubjectAltName type, string data_string)
- public int set_subject_key_id (void* id, size_t id_size)
- public int set_version (uint version)
- public int sign (Certificate issuer, PrivateKey issuer_key)
- public int sign2 (Certificate issuer, PrivateKey issuer_key, DigestAlgorithm alg, uint flags)
- public int verify (Certificate[] CA_list, CertificateVerifyFlags flags, out CertificateStatus verify)
- public int verify_data (uint flags, ref Datum data, ref Datum signature)