mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
libdvbci: fix for build with openssl 1.1
error: invalid use of incomplete type 'DH' {aka 'struct dh_st'}
Origin commit data
------------------
Branch: master
Commit: fde09ae3bb
Author: Thilo Graf <dbt@novatux.de>
Date: 2019-02-15 (Fri, 15 Feb 2019)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
#include <openssl/x509v3.h>
|
||||
#include <openssl/sha.h>
|
||||
#include <openssl/aes.h>
|
||||
#include <openssl/opensslv.h>
|
||||
|
||||
#include "misc.h"
|
||||
#include "_dh_params.h"
|
||||
@@ -240,7 +241,11 @@ static bool certificate_validate(struct cert_ctx *ctx, X509 *cert)
|
||||
ret = X509_verify_cert(store_ctx);
|
||||
|
||||
if (ret != 1)
|
||||
#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
fprintf(stderr, "%s\n", X509_verify_cert_error_string(store_ctx->error));
|
||||
#else
|
||||
fprintf(stderr, "%s\n", X509_verify_cert_error_string(ret));
|
||||
#endif
|
||||
|
||||
X509_STORE_CTX_free(store_ctx);
|
||||
|
||||
|
Reference in New Issue
Block a user