00001 /** @file 00002 00003 @section license License 00004 00005 Licensed to the Apache Software Foundation (ASF) under one 00006 or more contributor license agreements. See the NOTICE file 00007 distributed with this work for additional information 00008 regarding copyright ownership. The ASF licenses this file 00009 to you under the Apache License, Version 2.0 (the 00010 "License"); you may not use this file except in compliance 00011 with the License. You may obtain a copy of the License at 00012 00013 http://www.apache.org/licenses/LICENSE-2.0 00014 00015 Unless required by applicable law or agreed to in writing, software 00016 distributed under the License is distributed on an "AS IS" BASIS, 00017 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00018 See the License for the specific language governing permissions and 00019 limitations under the License. 00020 */ 00021 00022 #ifndef __P_OCSPSTAPLING_H__ 00023 #define __P_OCSPSTAPLING_H__ 00024 00025 #include <openssl/ssl.h> 00026 00027 #ifdef sk_OPENSSL_STRING_pop 00028 #ifdef SSL_CTX_set_tlsext_status_cb 00029 #define HAVE_OPENSSL_OCSP_STAPLING 1 00030 void ssl_stapling_ex_init(); 00031 bool ssl_stapling_init_cert(SSL_CTX *ctx, const char *certfile); 00032 void ocsp_update(); 00033 int ssl_callback_ocsp_stapling(SSL *); 00034 #endif /* SSL_CTX_set_tlsext_status_cb */ 00035 #endif /* sk_OPENSSL_STRING_pop */ 00036 00037 #endif /* __P_OCSPSTAPLING_H__ */