Latest update.
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
#include <errno.h>
|
||||
#include <limits.h>
|
||||
|
||||
#include "internal/ctype.h"
|
||||
#include "crypto/ctype.h"
|
||||
#include "internal/cryptlib.h"
|
||||
#include <openssl/crypto.h>
|
||||
#include <openssl/buffer.h>
|
||||
@@ -22,8 +22,8 @@
|
||||
#include <openssl/x509v3.h>
|
||||
#include <openssl/objects.h>
|
||||
#include "internal/dane.h"
|
||||
#include "internal/x509_int.h"
|
||||
#include "x509_lcl.h"
|
||||
#include "crypto/x509.h"
|
||||
#include "x509_local.h"
|
||||
|
||||
/* CRL score values */
|
||||
|
||||
@@ -2134,10 +2134,10 @@ int X509_STORE_CTX_purpose_inherit(X509_STORE_CTX *ctx, int def_purpose,
|
||||
{
|
||||
int idx;
|
||||
/* If purpose not set use default */
|
||||
if (!purpose)
|
||||
if (purpose == 0)
|
||||
purpose = def_purpose;
|
||||
/* If we have a purpose then check it is valid */
|
||||
if (purpose) {
|
||||
if (purpose != 0) {
|
||||
X509_PURPOSE *ptmp;
|
||||
idx = X509_PURPOSE_get_by_id(purpose);
|
||||
if (idx == -1) {
|
||||
@@ -2502,8 +2502,9 @@ int X509_STORE_CTX_get_num_untrusted(X509_STORE_CTX *ctx)
|
||||
int X509_STORE_CTX_set_default(X509_STORE_CTX *ctx, const char *name)
|
||||
{
|
||||
const X509_VERIFY_PARAM *param;
|
||||
|
||||
param = X509_VERIFY_PARAM_lookup(name);
|
||||
if (!param)
|
||||
if (param == NULL)
|
||||
return 0;
|
||||
return X509_VERIFY_PARAM_inherit(ctx->param, param);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user