"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/ocsp.c" between
hitch-1.4.6.tar.gz and hitch-1.4.8.tar.gz

About: Hitch is a libev-based high performance SSL/TLS proxy that terminates TLS/SSL connections and forwards the unencrypted traffic to some backend.

ocsp.c  (hitch-1.4.6):ocsp.c  (hitch-1.4.8)
skipping to change at line 34 skipping to change at line 34
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
* *
*/ */
#include <sys/select.h> #include <sys/select.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <unistd.h> #include <unistd.h>
#include "logging.h" #include "logging.h"
#include "hitch.h" #include "hitch.h"
#include "ocsp.h" #include "ocsp.h"
#include "configuration.h" #include "configuration.h"
/* hitch.c */ /* hitch.c */
extern hitch_config *CONFIG; extern hitch_config *CONFIG;
extern struct ev_loop *loop; extern struct ev_loop *loop;
skipping to change at line 500 skipping to change at line 501
tnow = Time_now(); tnow = Time_now();
if (sc->staple != NULL) { if (sc->staple != NULL) {
CHECK_OBJ_NOTNULL(sc->staple, SSLSTAPLE_MAGIC); CHECK_OBJ_NOTNULL(sc->staple, SSLSTAPLE_MAGIC);
if (sc->staple->nextupd > 0) { if (sc->staple->nextupd > 0) {
refresh = sc->staple->nextupd - tnow - 600; refresh = sc->staple->nextupd - tnow - 600;
if (refresh < 0) if (refresh < 0)
refresh = 0.0; refresh = 0.0;
} else } else
refresh = 1800; refresh = CONFIG->OCSP_REFRESH_INTERVAL;
} else { } else {
AN(sc->x509); AN(sc->x509);
sk_uri = X509_get1_ocsp(sc->x509); sk_uri = X509_get1_ocsp(sc->x509);
if (sk_uri == NULL || sk_OPENSSL_STRING_num(sk_uri) == 0) { if (sk_uri == NULL || sk_OPENSSL_STRING_num(sk_uri) == 0) {
LOG("{ocsp} Note: No OCSP responder URI found " LOG("{ocsp} Note: No OCSP responder URI found "
"for cert %s\n", sc->filename); "for cert %s\n", sc->filename);
if (sk_uri != NULL) if (sk_uri != NULL)
X509_email_free(sk_uri); X509_email_free(sk_uri);
return; return;
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)