[rs-commit] r249 - /mod_scep/trunk/openssl_setter_compat.h
rs-commit at redwax.eu
rs-commit at redwax.eu
Sun Jan 5 01:45:45 CET 2020
Author: minfrin at redwax.eu
Date: Sun Jan 5 01:45:45 2020
New Revision: 249
Log:
req_info and sig_alg are pointers.
Modified:
mod_scep/trunk/openssl_setter_compat.h
Modified: mod_scep/trunk/openssl_setter_compat.h
==============================================================================
--- mod_scep/trunk/openssl_setter_compat.h (original)
+++ mod_scep/trunk/openssl_setter_compat.h Sun Jan 5 01:45:45 2020
@@ -45,8 +45,8 @@
typedef _Atomic int CRYPTO_REF_COUNT;
struct X509_req_st {
- X509_REQ_INFO req_info;
- X509_ALGOR sig_alg;
+ X509_REQ_INFO *req_info;
+ X509_ALGOR *sig_alg;
ASN1_BIT_STRING *signature; /* signature */
CRYPTO_REF_COUNT references;
CRYPTO_RWLOCK *lock;
@@ -58,10 +58,10 @@
static void X509_REQ_set1_signature(X509_REQ *req, X509_ALGOR *palg)
{
- if (req->sig_alg.algorithm)
- ASN1_OBJECT_free(req->sig_alg.algorithm);
- if (req->sig_alg.parameter)
- ASN1_TYPE_free(req->sig_alg.parameter);
+ if (req->sig_alg->algorithm)
+ ASN1_OBJECT_free(req->sig_alg->algorithm);
+ if (req->sig_alg->parameter)
+ ASN1_TYPE_free(req->sig_alg->parameter);
req->sig_alg = *palg;
}
#define HAVE_X509_REQ_SET1_SIGNATURE 1
More information about the rs-commit
mailing list