BHttpRequest: propagate SSL errors to listener
This way it's possible to handle them in applications.
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
|
||||
#include <deque>
|
||||
|
||||
#include <Certificate.h>
|
||||
#include <HttpForm.h>
|
||||
#include <HttpHeaders.h>
|
||||
#include <HttpResult.h>
|
||||
@@ -74,6 +75,12 @@ private:
|
||||
void _SetResultStatusCode(int32 statusCode);
|
||||
BString& _ResultStatusText();
|
||||
|
||||
// SSL failure management
|
||||
friend class CheckedSecureSocket;
|
||||
bool _CertificateVerificationFailed(
|
||||
BCertificate& certificate,
|
||||
const char* message);
|
||||
|
||||
// Utility methods
|
||||
bool _IsDefaultPort();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user