Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ssl_pub.c « signet-resolver « dime « providers « src - github.com/lavabit/magma.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2d7c7d7529117bc40e5e5548f58f145574a805e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#include "dime/signet-resolver/signet-ssl.h"


int ssl_initialize(void) {
    PUBLIC_FUNC_IMPL(ssl_initialize, );
}

void ssl_shutdown(void) {
    PUBLIC_FUNC_IMPL_VOID(ssl_shutdown, );
}

SSL_CTX *ssl_get_client_context(void) {
    PUBLIC_FUNC_IMPL(ssl_get_client_context, );
}

SSL *ssl_starttls(int fd) {
    PUBLIC_FUNC_IMPL(ssl_starttls, fd);
}

SSL *ssl_connect_host(const char *hostname, unsigned short port, int force_family) {
    PUBLIC_FUNC_IMPL(ssl_connect_host, hostname, port, force_family);
}

void ssl_disconnect(SSL *handle) {
    PUBLIC_FUNC_IMPL_VOID(ssl_disconnect, handle);
}

int do_x509_validation(X509 *cert, STACK_OF(X509) *chain) {
    PUBLIC_FUNC_IMPL(do_x509_validation, cert, chain);
}

int do_x509_hostname_check(X509 *cert, const char *domain) {
    PUBLIC_FUNC_IMPL(do_x509_hostname_check, cert, domain);
}

int do_ocsp_validation(SSL *connection, int *fallthrough) {
    PUBLIC_FUNC_IMPL(do_ocsp_validation, connection, fallthrough);
}

char *get_cert_subject_cn(X509 *cert) {
    PUBLIC_FUNC_IMPL(get_cert_subject_cn, cert);
}