Latest update.
This commit is contained in:
+1
-1
@@ -10,7 +10,7 @@
|
||||
#include <openssl/ts.h>
|
||||
#include <openssl/err.h>
|
||||
#include <openssl/asn1t.h>
|
||||
#include "ts_lcl.h"
|
||||
#include "ts_local.h"
|
||||
|
||||
ASN1_SEQUENCE(TS_MSG_IMPRINT) = {
|
||||
ASN1_SIMPLE(TS_MSG_IMPRINT, hash_algo, X509_ALGOR),
|
||||
|
||||
+3
-2
@@ -283,9 +283,10 @@ int TS_CONF_set_def_policy(CONF *conf, const char *section,
|
||||
{
|
||||
int ret = 0;
|
||||
ASN1_OBJECT *policy_obj = NULL;
|
||||
if (!policy)
|
||||
|
||||
if (policy == NULL)
|
||||
policy = NCONF_get_string(conf, section, ENV_DEFAULT_POLICY);
|
||||
if (!policy) {
|
||||
if (policy == NULL) {
|
||||
ts_CONF_lookup_fail(section, ENV_DEFAULT_POLICY);
|
||||
goto err;
|
||||
}
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@
|
||||
#include <openssl/x509.h>
|
||||
#include <openssl/x509v3.h>
|
||||
#include <openssl/ts.h>
|
||||
#include "ts_lcl.h"
|
||||
#include "ts_local.h"
|
||||
|
||||
int TS_ASN1_INTEGER_print_bio(BIO *bio, const ASN1_INTEGER *num)
|
||||
{
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include <openssl/bn.h>
|
||||
#include <openssl/x509v3.h>
|
||||
#include <openssl/ts.h>
|
||||
#include "ts_lcl.h"
|
||||
#include "ts_local.h"
|
||||
|
||||
int TS_REQ_print_bio(BIO *bio, TS_REQ *a)
|
||||
{
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <openssl/objects.h>
|
||||
#include <openssl/x509v3.h>
|
||||
#include <openssl/ts.h>
|
||||
#include "ts_lcl.h"
|
||||
#include "ts_local.h"
|
||||
|
||||
int TS_REQ_set_version(TS_REQ *a, long version)
|
||||
{
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
#include <openssl/bn.h>
|
||||
#include <openssl/x509v3.h>
|
||||
#include <openssl/ts.h>
|
||||
#include "ts_lcl.h"
|
||||
#include "ts_local.h"
|
||||
|
||||
struct status_map_st {
|
||||
int bit;
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
#include <openssl/ts.h>
|
||||
#include <openssl/pkcs7.h>
|
||||
#include <openssl/crypto.h>
|
||||
#include "ts_lcl.h"
|
||||
#include "internal/ess_int.h"
|
||||
#include "ts_local.h"
|
||||
#include "crypto/ess.h"
|
||||
|
||||
static ASN1_INTEGER *def_serial_cb(struct TS_resp_ctx *, void *);
|
||||
static int def_time_cb(struct TS_resp_ctx *, void *, long *sec, long *usec);
|
||||
@@ -505,7 +505,7 @@ static ASN1_OBJECT *ts_RESP_get_policy(TS_RESP_CTX *ctx)
|
||||
if (!OBJ_cmp(requested, current))
|
||||
policy = current;
|
||||
}
|
||||
if (!policy) {
|
||||
if (policy == NULL) {
|
||||
TSerr(TS_F_TS_RESP_GET_POLICY, TS_R_UNACCEPTABLE_POLICY);
|
||||
TS_RESP_CTX_set_status_info(ctx, TS_STATUS_REJECTION,
|
||||
"Requested policy is not " "supported.");
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include <openssl/objects.h>
|
||||
#include <openssl/ts.h>
|
||||
#include <openssl/pkcs7.h>
|
||||
#include "ts_lcl.h"
|
||||
#include "ts_local.h"
|
||||
|
||||
int TS_RESP_set_status_info(TS_RESP *a, TS_STATUS_INFO *status_info)
|
||||
{
|
||||
|
||||
@@ -12,8 +12,8 @@
|
||||
#include <openssl/objects.h>
|
||||
#include <openssl/ts.h>
|
||||
#include <openssl/pkcs7.h>
|
||||
#include "ts_lcl.h"
|
||||
#include "internal/ess_int.h"
|
||||
#include "ts_local.h"
|
||||
#include "crypto/ess.h"
|
||||
|
||||
static int ts_verify_cert(X509_STORE *store, STACK_OF(X509) *untrusted,
|
||||
X509 *signer, STACK_OF(X509) **chain);
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
#include "internal/cryptlib.h"
|
||||
#include <openssl/objects.h>
|
||||
#include <openssl/ts.h>
|
||||
#include "ts_lcl.h"
|
||||
#include "ts_local.h"
|
||||
|
||||
TS_VERIFY_CTX *TS_VERIFY_CTX_new(void)
|
||||
{
|
||||
@@ -60,7 +60,7 @@ X509_STORE *TS_VERIFY_CTX_set_store(TS_VERIFY_CTX *ctx, X509_STORE *s)
|
||||
return ctx->store;
|
||||
}
|
||||
|
||||
STACK_OF(X509) *TS_VERIFY_CTS_set_certs(TS_VERIFY_CTX *ctx,
|
||||
STACK_OF(X509) *TS_VERIFY_CTX_set_certs(TS_VERIFY_CTX *ctx,
|
||||
STACK_OF(X509) *certs)
|
||||
{
|
||||
ctx->certs = certs;
|
||||
|
||||
Reference in New Issue
Block a user