Ticket #5: 0001-Fixes-openssl-1.0.0-compilation-warning.patch

File 0001-Fixes-openssl-1.0.0-compilation-warning.patch, 1.3 KB (added by Emmanuel Bretelle, 12 years ago)

same patch viewable online

  • ssl.c

    From 86d047dab0cdbd14ce828782d18e41597dfb7b20 Mon Sep 17 00:00:00 2001
    From: chantra <chantra@debuntu.org>
    Date: Fri, 16 Jul 2010 20:09:07 +0200
    Subject: [PATCH] Fixes openssl-1.0.0 compilation warning
    
    see trac ticket #5
    https://community.openvpn.net/openvpn/ticket/5
    Signed-off-by: chantra <chantra@debuntu.org>
    ---
     ssl.c |    6 +++---
     1 files changed, 3 insertions(+), 3 deletions(-)
    
    diff --git a/ssl.c b/ssl.c
    index c5f2131..d683925 100644
    a b verify_callback (int preverify_ok, X509_STORE_CTX * ctx) 
    962962        goto end;
    963963      }
    964964
    965       n = sk_num(X509_CRL_get_REVOKED(crl));
     965      n = sk_X509_REVOKED_num(X509_CRL_get_REVOKED(crl));
    966966
    967967      for (i = 0; i < n; i++) {
    968         revoked = (X509_REVOKED *)sk_value(X509_CRL_get_REVOKED(crl), i);
     968        revoked = (X509_REVOKED *)sk_X509_REVOKED_value(X509_CRL_get_REVOKED(crl), i);
    969969        if (ASN1_INTEGER_cmp(revoked->serialNumber, X509_get_serialNumber(ctx->current_cert)) == 0) {
    970970          msg (D_HANDSHAKE, "CRL CHECK FAILED: %s is REVOKED",subject);
    971971          goto end;
    init_ssl (const struct options *options) 
    15841584      /* Set Certificate Verification chain */
    15851585      if (!options->ca_file)
    15861586        {
    1587           if (ca && sk_num(ca))
     1587          if (ca && sk_X509_num(ca))
    15881588            {
    15891589              for (i = 0; i < sk_X509_num(ca); i++)
    15901590                {