#ifndef __struct_ssl__
#define __struct_ssl__

#ifdef HAVE_SSL

#include <openssl/rsa.h>       /* SSL stuff */
#include <openssl/crypto.h>
#include <openssl/x509.h>
#include <openssl/pem.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
#include "client.h"

/* Make these what you want for cert & key files */
#define CERTF  "server.cert.pem"
#define KEYF  "server.key.pem"


extern   SSL_CTX* ctx;
extern   SSL_METHOD *meth;
extern   void init_ssl();
extern   int ssl_handshake(struct Client *);   /* Handshake the accpeted con.*/
extern   int ssl_client_handshake(struct Client *); /* and the initiated con.*/

#endif
#endif
