https://github.com/henrycg/earand
Raw File
Tip revision: 362625f3847ddd2e2d5a90cf5f93b4b3ea76e059 authored by Henry Corrigan-Gibbs on 21 May 2018, 19:54:59 UTC
Merge branch 'master' of github.com:henrycg/earand
Tip revision: 362625f
ssl_client.h
#ifndef _SSL_CLIENT_H
#define _SSL_CLIENT_H

#include <stdbool.h>

typedef void (*ClientFunction)(SSL* ssl, void* data);

/**
 * Start up an SSL client that connects to the 
 * host/port. When the connection is open, 
 * client_func is called with the SSL* object.
 */
bool MakeSSLRequest(const char* hostname, int port,
    ClientFunction client_func, void* client_data);

#endif
back to top