mirror of
https://github.com/openssl/openssl.git
synced 2026-01-18 17:11:31 +01:00
Implementing store support for EVP_SKEY
Reviewed-by: Neil Horman <nhorman@openssl.org> Reviewed-by: Simo Sorce <simo@redhat.com> (Merged from https://github.com/openssl/openssl/pull/28278)
This commit is contained in:
committed by
Neil Horman
parent
1b035166bd
commit
1b0f21f055
@@ -29,6 +29,7 @@ extern "C" {
|
||||
#define OSSL_OBJECT_PKEY 2 /* EVP_PKEY * */
|
||||
#define OSSL_OBJECT_CERT 3 /* X509 * */
|
||||
#define OSSL_OBJECT_CRL 4 /* X509_CRL * */
|
||||
#define OSSL_OBJECT_SKEY 5 /* EVP_SKEY * */
|
||||
|
||||
/*
|
||||
* The rest of the associated OSSL_PARAM elements is described in core_names.h
|
||||
|
||||
@@ -160,6 +160,7 @@ OSSL_STORE_CTX *OSSL_STORE_attach(BIO *bio, const char *scheme,
|
||||
#define OSSL_STORE_INFO_PKEY 4 /* EVP_PKEY * */
|
||||
#define OSSL_STORE_INFO_CERT 5 /* X509 * */
|
||||
#define OSSL_STORE_INFO_CRL 6 /* X509_CRL * */
|
||||
#define OSSL_STORE_INFO_SKEY 7 /* EVP_SKEY * */
|
||||
|
||||
/*
|
||||
* Functions to generate OSSL_STORE_INFOs, one function for each type we
|
||||
@@ -176,6 +177,7 @@ OSSL_STORE_INFO *OSSL_STORE_INFO_new_PUBKEY(EVP_PKEY *pubkey);
|
||||
OSSL_STORE_INFO *OSSL_STORE_INFO_new_PKEY(EVP_PKEY *pkey);
|
||||
OSSL_STORE_INFO *OSSL_STORE_INFO_new_CERT(X509 *x509);
|
||||
OSSL_STORE_INFO *OSSL_STORE_INFO_new_CRL(X509_CRL *crl);
|
||||
OSSL_STORE_INFO *OSSL_STORE_INFO_new_SKEY(EVP_SKEY *skey);
|
||||
|
||||
/*
|
||||
* Functions to try to extract data from a OSSL_STORE_INFO.
|
||||
@@ -196,6 +198,8 @@ X509 *OSSL_STORE_INFO_get0_CERT(const OSSL_STORE_INFO *info);
|
||||
X509 *OSSL_STORE_INFO_get1_CERT(const OSSL_STORE_INFO *info);
|
||||
X509_CRL *OSSL_STORE_INFO_get0_CRL(const OSSL_STORE_INFO *info);
|
||||
X509_CRL *OSSL_STORE_INFO_get1_CRL(const OSSL_STORE_INFO *info);
|
||||
EVP_SKEY *OSSL_STORE_INFO_get0_SKEY(const OSSL_STORE_INFO *info);
|
||||
EVP_SKEY *OSSL_STORE_INFO_get1_SKEY(const OSSL_STORE_INFO *info);
|
||||
|
||||
const char *OSSL_STORE_INFO_type_string(int type);
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Generated by util/mkerr.pl DO NOT EDIT
|
||||
* Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
|
||||
* Copyright 1995-2025 The OpenSSL Project Authors. All Rights Reserved.
|
||||
*
|
||||
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
||||
* this file except in compliance with the License. You can obtain a copy
|
||||
@@ -32,6 +32,7 @@
|
||||
#define OSSL_STORE_R_NOT_A_NAME 103
|
||||
#define OSSL_STORE_R_NOT_A_PRIVATE_KEY 102
|
||||
#define OSSL_STORE_R_NOT_A_PUBLIC_KEY 122
|
||||
#define OSSL_STORE_R_NOT_A_SYMMETRIC_KEY 124
|
||||
#define OSSL_STORE_R_NOT_PARAMETERS 104
|
||||
#define OSSL_STORE_R_NO_LOADERS_FOUND 123
|
||||
#define OSSL_STORE_R_PASSPHRASE_CALLBACK_ERROR 114
|
||||
|
||||
Reference in New Issue
Block a user