Initial commit. It's far from finished.

This commit is contained in:
2016-08-08 11:12:06 +03:00
commit e9f3673bfd
30 changed files with 1948 additions and 0 deletions

13
agent/agent_ssl.h Normal file
View File

@@ -0,0 +1,13 @@
#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 */