closes #12
This commit is contained in:
@@ -1,30 +1,25 @@
|
||||
#ifndef SMARTCARDAUTH_H
|
||||
#define SMARTCARDAUTH_H
|
||||
|
||||
#include <private/qopensslhook_p.h>
|
||||
#include <QtCore/QMutex>
|
||||
#include <private/qsslsocket_openssl_symbols_p.h>
|
||||
|
||||
class QWidget;
|
||||
|
||||
struct enum_certs_s;
|
||||
int client_cert_cb(SSL *ssl, X509 **x509, EVP_PKEY **pkey);
|
||||
|
||||
class SmartCardAuth : public QOpenSslHook {
|
||||
|
||||
public:
|
||||
SmartCardAuth(QWidget* parent=0);
|
||||
class SmartCardAuth: public QObject {
|
||||
Q_OBJECT;
|
||||
|
||||
public:
|
||||
|
||||
SmartCardAuth();
|
||||
~SmartCardAuth();
|
||||
static void setPinDlgParent(QWidget* parent);
|
||||
|
||||
virtual bool hookInitSslContext(SSL_CTX* ctx);
|
||||
private Q_SLOTS:
|
||||
|
||||
void extendedContextInitialization(ssl_ctx_st* ctx);
|
||||
|
||||
private:
|
||||
static int client_cert_cb(SSL *ssl, X509 **x509, EVP_PKEY **pkey);
|
||||
static ENGINE* e;
|
||||
static enum_certs_s* certs_found;
|
||||
static QWidget* parent;
|
||||
static bool pin_configured;
|
||||
static bool pin_rejected;
|
||||
static QMutex _mutex;
|
||||
};
|
||||
|
||||
#endif // SMARTCARDAUTH_H
|
||||
|
Reference in New Issue
Block a user