tls_verify.h

Go to the documentation of this file.
00001 /*
00002  * $Id$
00003  *
00004  * TLS module - certificate verification function
00005  *
00006  * Copyright (C) 2001-2003 FhG FOKUS
00007  * Copyright (C) 2004,2005 Free Software Foundation, Inc.
00008  * COpyright (C) 2005 iptelorg GmbH
00009  *
00010  * This file is part of SIP-router, a free SIP server.
00011  *
00012  * SIP-router is free software; you can redistribute it and/or modify
00013  * it under the terms of the GNU General Public License as published by
00014  * the Free Software Foundation; either version 2 of the License, or
00015  * (at your option) any later version
00016  *
00017  * For a license to use the SIP-router software under conditions
00018  * other than those described here, or to purchase support for this
00019  * software, please contact iptel.org by e-mail at the following addresses:
00020  *    info@iptel.org
00021  *
00022  * SIP-router is distributed in the hope that it will be useful,
00023  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00024  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00025  * GNU General Public License for more details.
00026  *
00027  * You should have received a copy of the GNU General Public License
00028  * along with this program; if not, write to the Free Software
00029  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00030  */
00039 #ifndef _TLS_VERIFY_H
00040 #define _TLS_VERIFY_H
00041 
00042 #include <openssl/ssl.h>
00043 
00044 /* This callback is called during each verification process, 
00045 at each step during the chain of certificates (this function
00046 is not the certificate_verification one!). */
00047 int verify_callback(int pre_verify_ok, X509_STORE_CTX *ctx);
00048 
00049 #endif /* _TLS_VERIFY_H */