2003-07-23 12:12:24 -04:00
|
|
|
/*
|
|
|
|
* 'OpenSSL for Ruby' project
|
|
|
|
* Copyright (C) 2001-2002 Michal Rokos <m.rokos@sh.cvut.cz>
|
|
|
|
* All rights reserved.
|
|
|
|
*/
|
|
|
|
/*
|
2015-04-19 23:55:09 -04:00
|
|
|
* This program is licensed under the same licence as Ruby.
|
2003-07-23 12:12:24 -04:00
|
|
|
* (See the file 'LICENCE'.)
|
|
|
|
*/
|
2006-06-02 06:03:16 -04:00
|
|
|
#include RUBY_EXTCONF_H
|
|
|
|
|
2016-05-25 04:50:03 -04:00
|
|
|
#include <string.h> /* memcpy() */
|
|
|
|
#if !defined(OPENSSL_NO_ENGINE)
|
2005-07-25 23:59:39 -04:00
|
|
|
# include <openssl/engine.h>
|
|
|
|
#endif
|
2016-05-25 04:50:03 -04:00
|
|
|
#include <openssl/x509_vfy.h>
|
2003-07-23 12:12:24 -04:00
|
|
|
|
2016-05-25 04:50:03 -04:00
|
|
|
#include "openssl_missing.h"
|
2003-07-23 12:12:24 -04:00
|
|
|
|
2016-06-05 11:35:12 -04:00
|
|
|
/*** added in 1.1.0 ***/
|
|
|
|
#if !defined(HAVE_X509_CRL_GET0_SIGNATURE)
|
|
|
|
void
|
2016-12-21 20:43:41 -05:00
|
|
|
ossl_X509_CRL_get0_signature(const X509_CRL *crl, const ASN1_BIT_STRING **psig,
|
|
|
|
const X509_ALGOR **palg)
|
2016-06-05 11:35:12 -04:00
|
|
|
{
|
|
|
|
if (psig != NULL)
|
|
|
|
*psig = crl->signature;
|
|
|
|
if (palg != NULL)
|
|
|
|
*palg = crl->sig_alg;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if !defined(HAVE_X509_REQ_GET0_SIGNATURE)
|
|
|
|
void
|
2016-12-21 20:43:41 -05:00
|
|
|
ossl_X509_REQ_get0_signature(const X509_REQ *req, const ASN1_BIT_STRING **psig,
|
|
|
|
const X509_ALGOR **palg)
|
2016-06-05 11:35:12 -04:00
|
|
|
{
|
|
|
|
if (psig != NULL)
|
|
|
|
*psig = req->signature;
|
|
|
|
if (palg != NULL)
|
|
|
|
*palg = req->sig_alg;
|
|
|
|
}
|
|
|
|
#endif
|