ZNC  trunk
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SSLVerifyHost.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2004-2018 ZNC, see the NOTICE file for details.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef ZNC_SSLVERIFYHOST_H
18 #define ZNC_SSLVERIFYHOST_H
19 
20 #ifdef HAVE_LIBSSL
21 
22 #include <znc/Csocket.h>
23 #include <znc/ZNCString.h>
24 
25 bool ZNC_SSLVerifyHost(const CString& sHost, const X509* pCert,
26  CString& sError);
27 
28 #endif /* HAVE_LIBSSL */
29 
30 #endif /* ZNC_SSLVERIFYHOST_H */
String class that is used inside ZNC.
Definition: ZNCString.h:68
bool ZNC_SSLVerifyHost(const CString &sHost, const X509 *pCert, CString &sError)