14 lines
330 B
C
14 lines
330 B
C
#ifndef AGENT_SSL
|
|
#define AGENT_SSL
|
|
|
|
#include <openssl/ssl.h>
|
|
#include <openssl/err.h>
|
|
|
|
int connect_to_rmps(const char *hostname, int port);
|
|
SSL_CTX* init_ctx();
|
|
int verify_callback (int ok, X509_STORE_CTX *store);
|
|
void show_certs(SSL* ssl);
|
|
void load_certs(SSL_CTX *ctx, char *key, char *cert, char *ca);
|
|
|
|
#endif /* AGENT_SSL */
|