Cross-Platform C++

ot::ssl
class HostnameVerifier  (abstract)

#include "ot/ssl/HostnameVerifier.h"

ot::ManagedObject Abstract class providing an interface that allows applications to control whether TLS/SSL connections can be established with a HTTP server when the server's hostname does not match the fully qualified domain name (FQDN) contained within the server's X509 certificate. Clients should authenticate that the server has supplied a certificate containing the correct FQDN to help prevent the possibility for man-in-the-middle attacks. These hostname verification rules are defined in RFC 2818 - HTTP Over TLS and the OpenTop HTTP(S) framework classes perform the required verification. However, on the occasion when the required verification checks fail, the OpenTop HTTP framework provides the application with the opportunity to override the decision by registering a HostnameVerifier.

See also:
HttpsURLConnection::setHostnameVerifier() , HttpClientConnectionManager::setHostnameVerifier()



Method Summary
 virtual bool verify(const String& hostname, const SSLSession* pSession)=0
        

Methods inherited from class ot::ManagedObject
addRef(), getRefCount(), onFinalRelease(), operator=(const ManagedObject&), release()

Method Detail

verify

virtual bool verify(const String& hostname,
                    const SSLSession* pSession)=0



Cross-Platform C++

Found a bug or missing feature? Please email us at support@elcel.com

Copyright © 2000-2005 ElCel Technology   Trademark Acknowledgements