GnuTLS
Description:
Content:
Namespaces:
Classes:
- AnonClientCredentials
- AnonServerCredentials
- CertificateCredentials
- ClientSession
- DHParams - Diffie Hellman parameter handling.
- PSKClientCredentials
- PSKServerCredentials
- Priority
- RSAParams
- SRPClientCredentials
- SRPServerCredentials
- ServerSession
- Session
Structs:
Enums:
- AlertDescription
- AlertLevel
- CertificatePrintFormats
- CertificateRequest
- CertificateStatus
- CertificateType
- CipherAlgorithm
- CloseRequest
- CompressionMethod - ZLib, DEFLATE
- CredentialsType
- DigestAlgorithm
- ErrorCode - Gnutls error codes. The mapping to a TLS alert is also shown in comments.
- HandshakeDescription
- KXAlgorithm
- KeyUsage
- MacAlgorithm
- PKAlgorithm
- PSKKeyFlags
- ParamsType
- Protocol
- ServerNameType
- SignAlgorithm
- SupplementalDataFormatType - Supplemental data, RFC 4680.
Constants:
- public const int MAX_ALGORITHM_NUM
- public const int TLS_MASTER_SIZE
- public const int TLS_RANDOM_SIZE
- public const string VERSION
- public const int VERSION_MAJOR
- public const int VERSION_MINOR
- public const int VERSION_NUMBER
- public const int VERSION_PATCH
- public const Datum srp_1024_group_generator
- public const Datum srp_1024_group_prime
- public const Datum srp_1536_group_generator
- public const Datum srp_1536_group_prime
- public const Datum srp_2048_group_generator
- public const Datum srp_2048_group_prime
Delegates:
- public delegate void* AllocFunction (size_t size)
- public delegate void* CallocFunction (size_t count, size_t block_size)
- public delegate int ClientCertificateRetrieveFunction (Session session, Datum[] req_ca_rdn, PKAlgorithm[] pk_algos, out RetrStruct st)
- public delegate int DBRemoveFunc (void* ptr, Datum key)
- public delegate Datum DBRetrieveFunc (void* ptr, Datum key)
- public delegate int DBStoreFunc (void* ptr, Datum key, Datum data)
- public delegate void FreeFunction (void* ptr)
- public delegate int HandshakePostClientHelloFunc (Session session)
- public delegate int IsSecureFunction (void* ptr)
- public delegate void LogFunc (int level, string msg)
- public delegate int OprfiCallbackFunc (Session session, uint8[] in_oprfi, uint8[] out_oprfi)
- public delegate int PSKClientCredentialsFunction (Session session, out string username, out Datum key)
- public delegate int PSKServerCredentialsFunction (Session session, string username, ref Datum key)
- public delegate int ParamsFunction (Session session, ParamsType type, Params @params)
- public delegate ssize_t PullFunc (void* transport_ptr, void* buffer, size_t count)
- public delegate ssize_t PushFunc (void* transport_ptr, void* buffer, size_t count)
- public delegate void* ReallocFunction (void* ptr, size_t new_size)
- public delegate int SRPClientCredentialsFunction (Session session, out string username, out string password)
- public delegate int SRPServerCredentialsFunction (Session session, string username, out Datum salt, out Datum verifier, out Datum generator, out Datum prime)
- public delegate int ServerCertificateRetrieveFunction (Session session, out RetrStruct st)
- public delegate int SignFunc (Session session, CertificateType cert_type, ref Datum cert, ref Datum hash, out Datum signature)
External signing callback. Experimental.
Functions:
- public void* calloc (size_t count, size_t block_size)
- public unowned string? check_version (string? req_version)
- public unowned string? cipher_suite_get_name (KXAlgorithm kx, CipherAlgorithm cipher, MacAlgorithm mac)
- public unowned string? cipher_suite_info (size_t index, char[] cs_id, out KXAlgorithm kx, out CipherAlgorithm cipher, out MacAlgorithm mac, out Protocol version)
Returns cipher suite name or null if index is out of bounds
- public void free (void* ptr)
- public void free_data (owned uint[] data)
- public void global_deinit ()
- public int global_init ()
- public int hex2bin (string hex_data, size_t hex_size, void* bin_data, ref size_t bin_size)
- public int hex_decode (ref Datum hex_data, char[] result, ref size_t result_size)
- public int hex_encode (ref Datum data, char[] result, ref size_t result_size)
- public void* malloc (size_t size)
- public int pem_base64_decode (string header, ref Datum b64_data, void* result, ref size_t result_size)
- public int pem_base64_decode_alloc (string header, ref Datum b64_data, out Datum result)
- public int pem_base64_encode (string msg, ref Datum data, void* result, ref size_t result_size)
- public int pem_base64_encode_alloc (string msg, ref Datum data, out Datum result)
- public int prf (Session session, size_t label_size, string label, bool server_random_first, size_t extra_size, void* extra, size_t output_size, void* output)
- public int prf_raw (Session session, size_t label_size, string label, size_t seed_size, void* seed, size_t output_size, void* output)
- public int psk_netconf_derive_key (string password, string psk_identity, string psk_identity_hint, out Datum output_key)
- public void* realloc (void* ptr, size_t new_size)
- public void* secure_malloc (size_t size)
- public void set_global_errno (int err)
- public void set_log_function (LogFunc func)
- public void set_log_level (int level)
- public void set_mem_functions (AllocFunction alloc_func, AllocFunction secure_alloc_func, IsSecureFunction is_secure_func, ReallocFunction realloc_func, FreeFunction free_func)
- public int srp_base64_decode (ref Datum b64_data, uint8[] result, ref size_t result_size)
- public int srp_base64_decode_alloc (ref Datum b64_data, out Datum result)
- public int srp_base64_encode (ref Datum data, char[] result, ref size_t result_size)
- public int srp_base64_encode_alloc (ref Datum data, out Datum result)
- public int srp_verifier (string username, string password, ref Datum salt, ref Datum generator, ref Datum prime, out Datum result)
- public string strdup (string str)