[rs-commit] r248 - /mod_csr/trunk/openssl_setter_compat.h
rs-commit at redwax.eu
rs-commit at redwax.eu
Sun Jan 5 01:45:06 CET 2020
Author: minfrin at redwax.eu
Date: Sun Jan 5 01:45:05 2020
New Revision: 248
Log:
req_info and sig_alg are pointers.
Modified:
mod_csr/trunk/openssl_setter_compat.h
Modified: mod_csr/trunk/openssl_setter_compat.h
==============================================================================
--- mod_csr/trunk/openssl_setter_compat.h (original)
+++ mod_csr/trunk/openssl_setter_compat.h Sun Jan 5 01:45:05 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,11 +58,11 @@
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);
- req->sig_alg = *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);
+ req->sig_alg = palg;
}
#define HAVE_X509_REQ_SET1_SIGNATURE 1
#endif
More information about the rs-commit
mailing list