xref: /freebsd/contrib/wpa/src/crypto/tls_openssl.h (revision 780fb4a2fa9a9aee5ac48a60b790f567c0dc13e9)
1*780fb4a2SCy Schubert /*
2*780fb4a2SCy Schubert  * SSL/TLS interface functions for OpenSSL
3*780fb4a2SCy Schubert  * Copyright (c) 2004-2015, Jouni Malinen <j@w1.fi>
4*780fb4a2SCy Schubert  *
5*780fb4a2SCy Schubert  * This software may be distributed under the terms of the BSD license.
6*780fb4a2SCy Schubert  * See README for more details.
7*780fb4a2SCy Schubert  */
8*780fb4a2SCy Schubert 
9*780fb4a2SCy Schubert #ifndef TLS_OPENSSL_H
10*780fb4a2SCy Schubert #define TLS_OPENSSL_H
11*780fb4a2SCy Schubert 
12*780fb4a2SCy Schubert enum ocsp_result {
13*780fb4a2SCy Schubert 	OCSP_GOOD, OCSP_REVOKED, OCSP_NO_RESPONSE, OCSP_INVALID
14*780fb4a2SCy Schubert };
15*780fb4a2SCy Schubert 
16*780fb4a2SCy Schubert enum ocsp_result check_ocsp_resp(SSL_CTX *ssl_ctx, SSL *ssl, X509 *cert,
17*780fb4a2SCy Schubert 				 X509 *issuer, X509 *issuer_issuer);
18*780fb4a2SCy Schubert 
19*780fb4a2SCy Schubert #endif /* TLS_OPENSSL_H */
20