/*
 * Copyright (C) 2002 Ilya Volynets, Total Knowledge
 *
 * This program is free software. Free means freedom.
 * You are hereby granted the right to use this program
 * in any way you want as long as following conditions are met:
 * 1. All source distributions with code unmodified will also retain this
 *    notice intact.
 * 2. All binary distributions will be accompanied by text file clearly
 *    attributing authorship to Ilya Volynets and sopnsorship to
 *    Total Knowledge using following wording:
 *    "This binary is built from sources developed by Ilya Volynets.
 *    Development was kindly sponsored by Total Knowledge"
 * 3. All modified versions, if distributed, will clearly indicate
 *    that they are not original works and that they were derived from
 *    work developed by Ilya Volynets and sponsored by Total Knowledge
 */


#ifndef _SSLPP_SSLSERVER_H
#define _SSLPP_SSLSERVER_H

#include <string>

class CSSLServer: public CSSLObject
{
    BIO* accept;
    std::string certfile;
    std::string keyfile;
protected:
    bool valid;
public:
    CSSLServer(const std::string& connString, const std::string& certfile,const std::string& keyfile);
    ~CSSLServer();
    CSSLConnection* nextClient();
    operator bool(){return valid;}
};

#endif /*_SSLPP_SSLKERVER_H */
