MCPcopy Create free account
hub / github.com/R4be1/PuppetMaster / create_context

Function create_context

SSL-shell/main.c:23–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21#define SERVER_PORT "47443"
22
23SSL_CTX *create_context()
24{
25 const SSL_METHOD *method;
26 SSL_CTX *ctx;
27
28 SSL_library_init();
29 OpenSSL_add_all_algorithms();
30 SSL_load_error_strings();
31 method = TLS_client_method();
32 ctx = SSL_CTX_new(method);
33 if (!ctx)
34 {
35 fprintf(stderr, "SSL_CTX_new failed\n");
36 exit(EXIT_FAILURE);
37 }
38
39 return ctx;
40}
41
42int main(int argc, char **argv)
43{

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected