#ifndef _common_h #define _common_h #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define CA_LIST "root.pem" #define HOST "localhost" #define RANDOM "random.pem" #define PORT 4433 #define BUFSIZZ 1024 extern BIO *bio_err; int berr_exit (char *string); int err_exit(char *string); SSL_CTX *initialize_ctx(char *keyfile, char *password, char *protocol); void destroy_ctx(SSL_CTX *ctx); #ifndef ALLOW_OLD_VERSIONS #if (OPENSSL_VERSION_NUMBER < 0x00905100L) #error "Must use OpenSSL 0.9.6 or later" #endif #endif #endif