summaryrefslogtreecommitdiff
path: root/extra/yassl/src/cert_wrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'extra/yassl/src/cert_wrapper.cpp')
-rw-r--r--extra/yassl/src/cert_wrapper.cpp14
1 files changed, 12 insertions, 2 deletions
diff --git a/extra/yassl/src/cert_wrapper.cpp b/extra/yassl/src/cert_wrapper.cpp
index 639f0996d7e..ff359c6ad71 100644
--- a/extra/yassl/src/cert_wrapper.cpp
+++ b/extra/yassl/src/cert_wrapper.cpp
@@ -1,5 +1,5 @@
/*
- Copyright (c) 2005, 2012, Oracle and/or its affiliates. All rights reserved.
+ Copyright (c) 2005, 2014, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -91,7 +91,7 @@ opaque* x509::use_buffer()
//CertManager
CertManager::CertManager()
: peerX509_(0), verifyPeer_(false), verifyNone_(false), failNoCert_(false),
- sendVerify_(false), verifyCallback_(0)
+ sendVerify_(false), sendBlankCert_(false), verifyCallback_(0)
{}
@@ -142,6 +142,11 @@ void CertManager::setVerifyNone()
verifyNone_ = true;
}
+bool CertManager::sendBlankCert() const
+{
+ return sendBlankCert_;
+}
+
void CertManager::setFailNoCert()
{
@@ -154,6 +159,11 @@ void CertManager::setSendVerify()
sendVerify_ = true;
}
+void CertManager::setSendBlankCert()
+{
+ sendBlankCert_ = true;
+}
+
void CertManager::setVerifyCallback(VerifyCallback vc)
{