Imported OpenSSL 1.1.1d
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
|
||||
* Copyright 2016-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
@@ -172,7 +172,7 @@ typedef OSSL_STORE_INFO *(*file_try_decode_fn)(const char *pem_name,
|
||||
typedef int (*file_eof_fn)(void *handler_ctx);
|
||||
/*
|
||||
* The destroy_ctx function is used to destroy the handler_ctx that was
|
||||
* intiated by a repeatable try_decode fuction. This is only used when
|
||||
* initiated by a repeatable try_decode function. This is only used when
|
||||
* the handler is marked repeatable.
|
||||
*/
|
||||
typedef void (*file_destroy_ctx_fn)(void **handler_ctx);
|
||||
@@ -470,7 +470,7 @@ static FILE_HANDLER PrivateKey_handler = {
|
||||
};
|
||||
|
||||
/*
|
||||
* Public key decoder. Only supports SubjectPublicKeyInfo formated keys.
|
||||
* Public key decoder. Only supports SubjectPublicKeyInfo formatted keys.
|
||||
*/
|
||||
static OSSL_STORE_INFO *try_decode_PUBKEY(const char *pem_name,
|
||||
const char *pem_header,
|
||||
@@ -860,10 +860,10 @@ static OSSL_STORE_LOADER_CTX *file_open(const OSSL_STORE_LOADER *loader,
|
||||
if (ctx->_.dir.last_entry == NULL) {
|
||||
if (ctx->_.dir.last_errno != 0) {
|
||||
char errbuf[256];
|
||||
errno = ctx->_.dir.last_errno;
|
||||
openssl_strerror_r(errno, errbuf, sizeof(errbuf));
|
||||
OSSL_STOREerr(OSSL_STORE_F_FILE_OPEN, ERR_R_SYS_LIB);
|
||||
ERR_add_error_data(1, errbuf);
|
||||
errno = ctx->_.dir.last_errno;
|
||||
if (openssl_strerror_r(errno, errbuf, sizeof(errbuf)))
|
||||
ERR_add_error_data(1, errbuf);
|
||||
goto err;
|
||||
}
|
||||
ctx->_.dir.end_reached = 1;
|
||||
@@ -1260,11 +1260,11 @@ static OSSL_STORE_INFO *file_load(OSSL_STORE_LOADER_CTX *ctx,
|
||||
if (!ctx->_.dir.end_reached) {
|
||||
char errbuf[256];
|
||||
assert(ctx->_.dir.last_errno != 0);
|
||||
OSSL_STOREerr(OSSL_STORE_F_FILE_LOAD, ERR_R_SYS_LIB);
|
||||
errno = ctx->_.dir.last_errno;
|
||||
ctx->errcnt++;
|
||||
openssl_strerror_r(errno, errbuf, sizeof(errbuf));
|
||||
OSSL_STOREerr(OSSL_STORE_F_FILE_LOAD, ERR_R_SYS_LIB);
|
||||
ERR_add_error_data(1, errbuf);
|
||||
if (openssl_strerror_r(errno, errbuf, sizeof(errbuf)))
|
||||
ERR_add_error_data(1, errbuf);
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016-2018 The OpenSSL Project Authors. All Rights Reserved.
|
||||
* Copyright 2016-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the OpenSSL license (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
@@ -228,7 +228,7 @@ int OSSL_STORE_close(OSSL_STORE_CTX *ctx)
|
||||
* Functions to generate OSSL_STORE_INFOs, one function for each type we
|
||||
* support having in them as well as a generic constructor.
|
||||
*
|
||||
* In all cases, ownership of the object is transfered to the OSSL_STORE_INFO
|
||||
* In all cases, ownership of the object is transferred to the OSSL_STORE_INFO
|
||||
* and will therefore be freed when the OSSL_STORE_INFO is freed.
|
||||
*/
|
||||
static OSSL_STORE_INFO *store_info_new(int type, void *data)
|
||||
|
||||
Reference in New Issue
Block a user