libssl

package
v0.0.0-...-f4dbb0b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 25, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const BIO_CLOSE int = 0x01
View Source
const BIO_NOCLOSE int = 0x00
View Source
const SSL_OP_NO_DTLSv1 uint = 0x04000000
View Source
const SSL_OP_NO_DTLSv1_2 uint = 0x08000000
View Source
const SSL_OP_NO_SSLv3 uint = 0x02000000
View Source
const SSL_OP_NO_TLSv1 uint = 0x04000000
View Source
const SSL_OP_NO_TLSv1_1 uint = 0x10000000
View Source
const SSL_OP_NO_TLSv1_2 uint = 0x08000000
View Source
const SSL_OP_NO_TLSv1_3 uint = 0x20000000
View Source
const SSL_VERIFY_CLIENT_ONCE int = 0x04
View Source
const SSL_VERIFY_FAIL_IF_NO_PEER_CERT int = 0x02
View Source
const SSL_VERIFY_NONE int = 0x00
View Source
const SSL_VERIFY_PEER int = 0x01
View Source
const SSL_VERIFY_POST_HANDSHAKE int = 0x08

Variables

View Source
var Custom_ssl_psk_client_cb_func _swig_fnptr = _swig_getcustom_ssl_psk_client_cb_func()
View Source
var Custom_ssl_verify_cb _swig_fnptr = _swig_getcustom_ssl_verify_cb()
View Source
var Swig_escape_always_false bool
View Source
var Swig_escape_val interface{}

Functions

func BIO_ctrl_pending

func BIO_ctrl_pending(arg1 BIO) (_swig_ret int64)

func BIO_ctrl_wpending

func BIO_ctrl_wpending(arg1 BIO) (_swig_ret int64)

func BIO_do_accept

func BIO_do_accept(arg1 BIO) (_swig_ret int)

func BIO_do_connect

func BIO_do_connect(arg1 BIO) (_swig_ret int64)

func BIO_do_handshake

func BIO_do_handshake(arg1 BIO) (_swig_ret int64)

func BIO_eof

func BIO_eof(arg1 BIO) (_swig_ret int)

func BIO_flush

func BIO_flush(arg1 BIO) (_swig_ret int)

func BIO_free

func BIO_free(arg1 BIO) (_swig_ret int)

func BIO_free_all

func BIO_free_all(arg1 BIO)

func BIO_get_ex_data

func BIO_get_ex_data(arg1 BIO, arg2 int) (_swig_ret uintptr)

func BIO_get_ex_new_index

func BIO_get_ex_new_index(arg1 int64, arg2 uintptr, arg3 CRYPTO_EX_new, arg4 CRYPTO_EX_dup, arg5 CRYPTO_EX_free) (_swig_ret int)

func BIO_gets

func BIO_gets(arg1 BIO, arg2 []byte) (_swig_ret int)

func BIO_make_bio_pair

func BIO_make_bio_pair(arg1 BIO, arg2 BIO) (_swig_ret int)

func BIO_pending

func BIO_pending(arg1 BIO) (_swig_ret int)

func BIO_puts

func BIO_puts(arg1 BIO, arg2 string) (_swig_ret int)

func BIO_read

func BIO_read(arg1 BIO, arg2 []byte) (_swig_ret int)

func BIO_reset

func BIO_reset(arg1 BIO) (_swig_ret int)

func BIO_seek

func BIO_seek(arg1 BIO, arg2 int) (_swig_ret int)

func BIO_set_cipher

func BIO_set_cipher(arg1 BIO, arg2 EVP_CIPHER, arg3 []byte, arg4 []byte, arg5 int) (_swig_ret int)

func BIO_set_close

func BIO_set_close(arg1 BIO, arg2 int64) (_swig_ret int)

func BIO_set_conn_hostname

func BIO_set_conn_hostname(arg1 BIO, arg2 string) (_swig_ret int64)

func BIO_set_ex_data

func BIO_set_ex_data(arg1 BIO, arg2 int, arg3 uintptr) (_swig_ret int)

func BIO_set_fd

func BIO_set_fd(arg1 BIO, arg2 int, arg3 int) (_swig_ret int)

func BIO_set_md

func BIO_set_md(arg1 BIO, arg2 EVP_MD) (_swig_ret int)

func BIO_set_nbio

func BIO_set_nbio(arg1 BIO, arg2 int64) (_swig_ret int64)

func BIO_should_read

func BIO_should_read(arg1 BIO) (_swig_ret int)

func BIO_should_retry

func BIO_should_retry(arg1 BIO) (_swig_ret int)

func BIO_should_write

func BIO_should_write(arg1 BIO) (_swig_ret int)

func BIO_ssl_shutdown

func BIO_ssl_shutdown(arg1 BIO)

func BIO_tell

func BIO_tell(arg1 BIO) (_swig_ret int)

func BIO_write

func BIO_write(arg1 BIO, arg2 []byte) (_swig_ret int)

func DeleteBio_pair

func DeleteBio_pair(arg1 Bio_pair)

func ERR_print_errors

func ERR_print_errors(arg1 BIO)

func EVP_CIPHER_iv_length

func EVP_CIPHER_iv_length(arg1 EVP_CIPHER) (_swig_ret int)

func EVP_CIPHER_key_length

func EVP_CIPHER_key_length(arg1 EVP_CIPHER) (_swig_ret int)

func GoSslPskClientCbFunc

func GoSslPskClientCbFunc(_ssl uintptr, hint *C.char, identity *C.char,
	max_identity_len C.uint, psk *C.uchar, max_psk_len C.uint) C.uint

func GoSslVerifyCb

func GoSslVerifyCb(preverify_ok C.int, x509_ctx uintptr) C.int

func RegisterCertificateCallback

func RegisterCertificateCallback(callback CertificateVerifyCallback)

func RegisterPSKCallback

func RegisterPSKCallback(callback PSKClientCallback)

func SSL_CTX_free

func SSL_CTX_free(arg1 SSL_CTX)

func SSL_CTX_get_ex_data

func SSL_CTX_get_ex_data(arg1 SSL_CTX, arg2 int) (_swig_ret uintptr)

func SSL_CTX_get_ex_new_index

func SSL_CTX_get_ex_new_index(arg1 int64, arg2 uintptr, arg3 CRYPTO_EX_new, arg4 CRYPTO_EX_dup, arg5 CRYPTO_EX_free) (_swig_ret int)

func SSL_CTX_load_verify_locations

func SSL_CTX_load_verify_locations(arg1 SSL_CTX, arg2 string, arg3 string) (_swig_ret int)

func SSL_CTX_set_alpn_protos

func SSL_CTX_set_alpn_protos(arg1 SSL_CTX, arg2 []byte) (_swig_ret int)

func SSL_CTX_set_default_verify_paths

func SSL_CTX_set_default_verify_paths(arg1 SSL_CTX) (_swig_ret int)

func SSL_CTX_set_ex_data

func SSL_CTX_set_ex_data(arg1 SSL_CTX, arg2 int, arg3 uintptr) (_swig_ret int)

func SSL_CTX_set_psk_client_callback

func SSL_CTX_set_psk_client_callback(arg1 SSL_CTX, arg2 _swig_fnptr)

func SSL_CTX_set_verify

func SSL_CTX_set_verify(arg1 SSL_CTX, arg2 int, arg3 _swig_fnptr)

func SSL_CTX_set_verify_depth

func SSL_CTX_set_verify_depth(arg1 SSL_CTX, arg2 int)

func SSL_CTX_use_PrivateKey

func SSL_CTX_use_PrivateKey(arg1 SSL_CTX, arg2 EVP_PKEY) (_swig_ret int)

func SSL_CTX_use_PrivateKey_file

func SSL_CTX_use_PrivateKey_file(arg1 SSL_CTX, arg2 string, arg3 int) (_swig_ret int)

func SSL_CTX_use_certificate

func SSL_CTX_use_certificate(arg1 SSL_CTX, arg2 X509) (_swig_ret int)

func SSL_CTX_use_certificate_chain_file

func SSL_CTX_use_certificate_chain_file(arg1 SSL_CTX, arg2 string) (_swig_ret int)

func SSL_accept

func SSL_accept(arg1 SSL) (_swig_ret int)

func SSL_connect

func SSL_connect(arg1 SSL) (_swig_ret int)

func SSL_do_handshake

func SSL_do_handshake(arg1 SSL) (_swig_ret int)

func SSL_free

func SSL_free(arg1 SSL)

func SSL_get_alpn_selected

func SSL_get_alpn_selected(arg1 SSL) (_swig_ret string)

func SSL_get_error

func SSL_get_error(arg1 SSL, arg2 int) (_swig_ret int)

func SSL_get_ex_data

func SSL_get_ex_data(arg1 SSL, arg2 int) (_swig_ret uintptr)

func SSL_get_ex_data_X509_STORE_CTX_idx

func SSL_get_ex_data_X509_STORE_CTX_idx() (_swig_ret int)

func SSL_get_ex_new_index

func SSL_get_ex_new_index(arg1 int64, arg2 uintptr, arg3 CRYPTO_EX_new, arg4 CRYPTO_EX_dup, arg5 CRYPTO_EX_free) (_swig_ret int)

func SSL_get_verify_result

func SSL_get_verify_result(arg1 SSL) (_swig_ret int64)

func SSL_read

func SSL_read(arg1 SSL, arg2 []byte) (_swig_ret int)

func SSL_set_accept_state

func SSL_set_accept_state(arg1 SSL)

func SSL_set_alpn_protos

func SSL_set_alpn_protos(arg1 SSL, arg2 []byte) (_swig_ret int)

func SSL_set_bio

func SSL_set_bio(arg1 SSL, arg2 BIO, arg3 BIO)

func SSL_set_connect_state

func SSL_set_connect_state(arg1 SSL)

func SSL_set_ex_data

func SSL_set_ex_data(arg1 SSL, arg2 int, arg3 uintptr) (_swig_ret int)

func SSL_set_fd

func SSL_set_fd(arg1 SSL, arg2 int) (_swig_ret int)

func SSL_set_psk_client_callback

func SSL_set_psk_client_callback(arg1 SSL, arg2 _swig_fnptr)

func SSL_set_tlsext_host_name

func SSL_set_tlsext_host_name(arg1 SSL, arg2 string) (_swig_ret int)

func SSL_set_verify

func SSL_set_verify(arg1 SSL, arg2 int, arg3 _swig_fnptr)

func SSL_set_verify_depth

func SSL_set_verify_depth(arg1 SSL, arg2 int)

func SSL_shutdown

func SSL_shutdown(arg1 SSL) (_swig_ret int)

func SSL_use_PrivateKey

func SSL_use_PrivateKey(arg1 SSL, arg2 EVP_PKEY) (_swig_ret int)

func SSL_use_certificate

func SSL_use_certificate(arg1 SSL, arg2 X509) (_swig_ret int)

func SSL_use_certificate_chain_file

func SSL_use_certificate_chain_file(arg1 SSL, arg2 string) (_swig_ret int)

func SSL_use_certificate_file

func SSL_use_certificate_file(arg1 SSL, arg2 string, arg3 int) (_swig_ret int)

func SSL_want_read

func SSL_want_read(arg1 SSL) (_swig_ret int)

func SSL_want_write

func SSL_want_write(arg1 SSL) (_swig_ret int)

func SSL_write

func SSL_write(arg1 SSL, arg2 []byte) (_swig_ret int)

func Swig_free

func Swig_free(arg1 uintptr)

func Swig_malloc

func Swig_malloc(arg1 int) (_swig_ret uintptr)

func X509_NAME_print

func X509_NAME_print(arg1 BIO, arg2 X509_NAME, arg3 int) (_swig_ret int)

func X509_STORE_CTX_get_error

func X509_STORE_CTX_get_error(arg1 X509_STORE_CTX) (_swig_ret int)

func X509_STORE_CTX_get_ex_data

func X509_STORE_CTX_get_ex_data(arg1 X509_STORE_CTX, arg2 int) (_swig_ret uintptr)

func X509_STORE_add_cert

func X509_STORE_add_cert(arg1 X509_STORE, arg2 X509) (_swig_ret int)

func X509_verify_cert_error_string

func X509_verify_cert_error_string(arg1 int64) (_swig_ret string)

Types

type BIO

type BIO interface {
	Swigcptr() uintptr
}

func BIO_new

func BIO_new(arg1 BIO_METHOD) (_swig_ret BIO)

func BIO_new_accept

func BIO_new_accept(arg1 string) (_swig_ret BIO)

func BIO_new_connect

func BIO_new_connect(arg1 string) (_swig_ret BIO)

func BIO_new_fd

func BIO_new_fd(arg1 int, arg2 int) (_swig_ret BIO)

func BIO_new_file

func BIO_new_file(arg1 string, arg2 string) (_swig_ret BIO)

func BIO_new_socket

func BIO_new_socket(arg1 int, arg2 int) (_swig_ret BIO)

func BIO_new_ssl

func BIO_new_ssl(arg1 SSL_CTX, arg2 int) (_swig_ret BIO)

func BIO_new_ssl_connect

func BIO_new_ssl_connect(arg1 SSL_CTX) (_swig_ret BIO)

func BIO_push

func BIO_push(arg1 BIO, arg2 BIO) (_swig_ret BIO)

type BIO_METHOD

type BIO_METHOD interface {
	Swigcptr() uintptr
}

func BIO_f_base64

func BIO_f_base64() (_swig_ret BIO_METHOD)

func BIO_f_buffer

func BIO_f_buffer() (_swig_ret BIO_METHOD)

func BIO_f_cipher

func BIO_f_cipher() (_swig_ret BIO_METHOD)

func BIO_f_md

func BIO_f_md() (_swig_ret BIO_METHOD)

func BIO_f_null

func BIO_f_null() (_swig_ret BIO_METHOD)

func BIO_f_ssl

func BIO_f_ssl() (_swig_ret BIO_METHOD)

func BIO_s_accept

func BIO_s_accept() (_swig_ret BIO_METHOD)

func BIO_s_bio

func BIO_s_bio() (_swig_ret BIO_METHOD)

func BIO_s_connect

func BIO_s_connect() (_swig_ret BIO_METHOD)

func BIO_s_fd

func BIO_s_fd() (_swig_ret BIO_METHOD)

func BIO_s_mem

func BIO_s_mem() (_swig_ret BIO_METHOD)

func BIO_s_null

func BIO_s_null() (_swig_ret BIO_METHOD)

func BIO_s_socket

func BIO_s_socket() (_swig_ret BIO_METHOD)

type Bio_pair

type Bio_pair interface {
	Swigcptr() uintptr
	SwigIsBio_pair()
	SetBio1(arg2 BIO)
	GetBio1() (_swig_ret BIO)
	SetBio2(arg2 BIO)
	GetBio2() (_swig_ret BIO)
}

func BIO_new_bio_pair

func BIO_new_bio_pair() (_swig_ret Bio_pair)

func NewBio_pair

func NewBio_pair() (_swig_ret Bio_pair)

type CRYPTO_EX_dup

type CRYPTO_EX_dup interface {
	Swigcptr() uintptr
}

type CRYPTO_EX_free

type CRYPTO_EX_free interface {
	Swigcptr() uintptr
}

type CRYPTO_EX_new

type CRYPTO_EX_new interface {
	Swigcptr() uintptr
}

type CertificateVerifyCallback

type CertificateVerifyCallback func(preverify int, ctx uintptr) int

type EVP_CIPHER

type EVP_CIPHER interface {
	Swigcptr() uintptr
}

func EVP_aes_128_cbc

func EVP_aes_128_cbc() (_swig_ret EVP_CIPHER)

func EVP_aes_128_cfb

func EVP_aes_128_cfb() (_swig_ret EVP_CIPHER)

func EVP_aes_128_gcm

func EVP_aes_128_gcm() (_swig_ret EVP_CIPHER)

func EVP_aes_256_cbc

func EVP_aes_256_cbc() (_swig_ret EVP_CIPHER)

func EVP_aes_256_cfb

func EVP_aes_256_cfb() (_swig_ret EVP_CIPHER)

func EVP_aes_256_gcm

func EVP_aes_256_gcm() (_swig_ret EVP_CIPHER)

type EVP_MD

type EVP_MD interface {
	Swigcptr() uintptr
}

func EVP_md5

func EVP_md5() (_swig_ret EVP_MD)

func EVP_sha1

func EVP_sha1() (_swig_ret EVP_MD)

func EVP_sha256

func EVP_sha256() (_swig_ret EVP_MD)

func EVP_sha512

func EVP_sha512() (_swig_ret EVP_MD)

type EVP_PKEY

type EVP_PKEY interface {
	Swigcptr() uintptr
}

func PEM_read_bio_PrivateKey

func PEM_read_bio_PrivateKey(arg1 BIO, arg2 EVP_PKEY, arg3 _swig_fnptr, arg4 uintptr) (_swig_ret EVP_PKEY)

func SSL_CTX_get0_privatekey

func SSL_CTX_get0_privatekey(arg1 SSL_CTX) (_swig_ret EVP_PKEY)

type PSKClientCallback

type PSKClientCallback func(ssl uintptr, hint string) (identity string, psk []byte)

type SSL

type SSL interface {
	Swigcptr() uintptr
}

func BIO_get_ssl

func BIO_get_ssl(arg1 BIO) (_swig_ret SSL)

func SSL_new

func SSL_new(arg1 SSL_CTX) (_swig_ret SSL)

type SSL_CTX

type SSL_CTX interface {
	Swigcptr() uintptr
}

func SSL_CTX_new

func SSL_CTX_new(arg1 SSL_METHOD) (_swig_ret SSL_CTX)

type SSL_METHOD

type SSL_METHOD interface {
	Swigcptr() uintptr
}

func DTLS_client_method

func DTLS_client_method() (_swig_ret SSL_METHOD)

func DTLS_method

func DTLS_method() (_swig_ret SSL_METHOD)

func DTLS_server_method

func DTLS_server_method() (_swig_ret SSL_METHOD)

func TLS_client_method

func TLS_client_method() (_swig_ret SSL_METHOD)

func TLS_method

func TLS_method() (_swig_ret SSL_METHOD)

func TLS_server_method

func TLS_server_method() (_swig_ret SSL_METHOD)

type SwigcptrBIO

type SwigcptrBIO uintptr

func (SwigcptrBIO) Swigcptr

func (p SwigcptrBIO) Swigcptr() uintptr

type SwigcptrBIO_METHOD

type SwigcptrBIO_METHOD uintptr

func (SwigcptrBIO_METHOD) Swigcptr

func (p SwigcptrBIO_METHOD) Swigcptr() uintptr

type SwigcptrBio_pair

type SwigcptrBio_pair uintptr

func (SwigcptrBio_pair) GetBio1

func (arg1 SwigcptrBio_pair) GetBio1() (_swig_ret BIO)

func (SwigcptrBio_pair) GetBio2

func (arg1 SwigcptrBio_pair) GetBio2() (_swig_ret BIO)

func (SwigcptrBio_pair) SetBio1

func (arg1 SwigcptrBio_pair) SetBio1(arg2 BIO)

func (SwigcptrBio_pair) SetBio2

func (arg1 SwigcptrBio_pair) SetBio2(arg2 BIO)

func (SwigcptrBio_pair) SwigIsBio_pair

func (p SwigcptrBio_pair) SwigIsBio_pair()

func (SwigcptrBio_pair) Swigcptr

func (p SwigcptrBio_pair) Swigcptr() uintptr

type SwigcptrCRYPTO_EX_dup

type SwigcptrCRYPTO_EX_dup uintptr

func (SwigcptrCRYPTO_EX_dup) Swigcptr

func (p SwigcptrCRYPTO_EX_dup) Swigcptr() uintptr

type SwigcptrCRYPTO_EX_free

type SwigcptrCRYPTO_EX_free uintptr

func (SwigcptrCRYPTO_EX_free) Swigcptr

func (p SwigcptrCRYPTO_EX_free) Swigcptr() uintptr

type SwigcptrCRYPTO_EX_new

type SwigcptrCRYPTO_EX_new uintptr

func (SwigcptrCRYPTO_EX_new) Swigcptr

func (p SwigcptrCRYPTO_EX_new) Swigcptr() uintptr

type SwigcptrEVP_CIPHER

type SwigcptrEVP_CIPHER uintptr

func (SwigcptrEVP_CIPHER) Swigcptr

func (p SwigcptrEVP_CIPHER) Swigcptr() uintptr

type SwigcptrEVP_MD

type SwigcptrEVP_MD uintptr

func (SwigcptrEVP_MD) Swigcptr

func (p SwigcptrEVP_MD) Swigcptr() uintptr

type SwigcptrEVP_PKEY

type SwigcptrEVP_PKEY uintptr

func (SwigcptrEVP_PKEY) Swigcptr

func (p SwigcptrEVP_PKEY) Swigcptr() uintptr

type SwigcptrSSL

type SwigcptrSSL uintptr

func (SwigcptrSSL) Swigcptr

func (p SwigcptrSSL) Swigcptr() uintptr

type SwigcptrSSL_CTX

type SwigcptrSSL_CTX uintptr

func (SwigcptrSSL_CTX) Swigcptr

func (p SwigcptrSSL_CTX) Swigcptr() uintptr

type SwigcptrSSL_METHOD

type SwigcptrSSL_METHOD uintptr

func (SwigcptrSSL_METHOD) Swigcptr

func (p SwigcptrSSL_METHOD) Swigcptr() uintptr

type SwigcptrUint64_t

type SwigcptrUint64_t uintptr

func (SwigcptrUint64_t) Swigcptr

func (p SwigcptrUint64_t) Swigcptr() uintptr

type SwigcptrX509

type SwigcptrX509 uintptr

func (SwigcptrX509) Swigcptr

func (p SwigcptrX509) Swigcptr() uintptr

type SwigcptrX509_NAME

type SwigcptrX509_NAME uintptr

func (SwigcptrX509_NAME) Swigcptr

func (p SwigcptrX509_NAME) Swigcptr() uintptr

type SwigcptrX509_STORE

type SwigcptrX509_STORE uintptr

func (SwigcptrX509_STORE) Swigcptr

func (p SwigcptrX509_STORE) Swigcptr() uintptr

type SwigcptrX509_STORE_CTX

type SwigcptrX509_STORE_CTX uintptr

func (SwigcptrX509_STORE_CTX) Swigcptr

func (p SwigcptrX509_STORE_CTX) Swigcptr() uintptr

type Uint64_t

type Uint64_t interface {
	Swigcptr() uintptr
}

func SSL_CTX_set_options

func SSL_CTX_set_options(arg1 SSL_CTX, arg2 Uint64_t) (_swig_ret Uint64_t)

func SSL_set_options

func SSL_set_options(arg1 SSL, arg2 Uint64_t) (_swig_ret Uint64_t)

type X509

type X509 interface {
	Swigcptr() uintptr
}

func PEM_read_bio_X509

func PEM_read_bio_X509(arg1 BIO, arg2 X509, arg3 _swig_fnptr, arg4 uintptr) (_swig_ret X509)

func SSL_CTX_get0_certificate

func SSL_CTX_get0_certificate(arg1 SSL_CTX) (_swig_ret X509)

func SSL_get_peer_certificate

func SSL_get_peer_certificate(arg1 SSL) (_swig_ret X509)

type X509_NAME

type X509_NAME interface {
	Swigcptr() uintptr
}

func X509_get_issuer_name

func X509_get_issuer_name(arg1 X509) (_swig_ret X509_NAME)

func X509_get_subject_name

func X509_get_subject_name(arg1 X509) (_swig_ret X509_NAME)

type X509_STORE

type X509_STORE interface {
	Swigcptr() uintptr
}

func SSL_CTX_get_cert_store

func SSL_CTX_get_cert_store(arg1 SSL_CTX) (_swig_ret X509_STORE)

type X509_STORE_CTX

type X509_STORE_CTX interface {
	Swigcptr() uintptr
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL