Changeset 45594


Ignore:
Timestamp:
11/08/21 08:34:03 (7 months ago)
Author:
obi
Message:

test add openssl ifdef to cacc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/cacc.h

    r45589 r45594  
    474474{
    475475        debug(620, "start");
    476 #ifdef OEBUILD
     476#if OPENSSL_VERSION_NUMBER < 0x10100000L
    477477// source from https://github.com/catalinii/minisatip/blob/master/src/ca.c
    478478    DH *dh;
     
    10411041{
    10421042        debug(620, "start");
    1043 #ifdef TITANNIT
    1044         X509_STORE_CTX *store_ctx;
    1045         int ret;
    1046 
    1047         store_ctx = X509_STORE_CTX_new();
    1048 
    1049         X509_STORE_CTX_init(store_ctx, ctx->store, cert, NULL);
    1050         X509_STORE_CTX_set_verify_cb(store_ctx, verify_cb);
    1051         X509_STORE_CTX_set_flags(store_ctx, X509_V_FLAG_IGNORE_CRITICAL);
    1052 
    1053         ret = X509_verify_cert(store_ctx);
    1054 
    1055         if (ret != 1)
    1056                 fprintf(stderr, "%s\n", X509_verify_cert_error_string(store_ctx->error));
    1057 
    1058         X509_STORE_CTX_free(store_ctx);
    1059 
    1060         return ret == 1;
    1061 #elif OEBUILD
     1043#if OPENSSL_VERSION_NUMBER < 0x10100000L
    10621044// source from https://github.com/catalinii/minisatip/blob/master/src/ca.c
    10631045    X509_STORE_CTX *store_ctx;
Note: See TracChangeset for help on using the changeset viewer.