adding security misc from Vx7 to 6.9 (original files from vx7) (#5)
Co-authored-by: neelimap <neelimaps@neominds.in> Reviewed-on: http://13.234.246.121:3000/Neominds/ossl35vx69/pulls/5 Reviewed-by: Siddhant Singh <siddhant.singh@neominds.in> Co-authored-by: Neelima P S <neelima.ps@neominds.in> Co-committed-by: Neelima P S <neelima.ps@neominds.in>
This commit is contained in:
committed by
neelimap
co-authored by
neelimap
parent
368226261b
commit
122392cfc0
@@ -0,0 +1,49 @@
|
||||
/* secTrustStore.h - VxWorks trust store library header file */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2017, 2021, 2023 Wind River Systems, Inc.
|
||||
*
|
||||
* The right to copy, distribute, modify, or otherwise make use
|
||||
* of this software may be licensed only pursuant to the terms
|
||||
* of an applicable Wind River license agreement.
|
||||
*/
|
||||
|
||||
#ifndef __INCsecTrustStoreh
|
||||
#define __INCsecTrustStoreh
|
||||
|
||||
/* includes */
|
||||
#include <vxWorks.h>
|
||||
#include <openssl/x509.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif /* __cplusplus */
|
||||
|
||||
/* defines */
|
||||
|
||||
/* KeyUsage defines */
|
||||
#define DIGITAL_SIGNATURE (1)
|
||||
#define CONTENT_COMMITMENT (1<<1) /* previous editions of X.509
|
||||
called this bit to nonRepudiation */
|
||||
#define KEY_ENCIPHERMENT (1<<2)
|
||||
#define DATA_ENCIPHERMENT (1<<3)
|
||||
#define KEY_AGREEMENT (1<<4)
|
||||
#define KEY_CERT_SIGN (1<<5)
|
||||
#define CRL_SIGN (1<<6)
|
||||
#define ENCIPHER_ONLY (1<<7)
|
||||
#define DECIPHER_ONLY (1<<8)
|
||||
|
||||
|
||||
/* typedefs */
|
||||
typedef STATUS (*SEC_TRUST_STORE_PUBKEY_VALIDATE_CB)(const char* trustStoreId, const X509* cert, const unsigned int keyUsage);
|
||||
|
||||
/* function declarations */
|
||||
extern STATUS secTrustStorePubKeyValidate(const char* trustStoreId, const X509* cert, const unsigned int keyUsage);
|
||||
|
||||
extern void secTrustStorePubKeyValidateProviderSet(const SEC_TRUST_STORE_PUBKEY_VALIDATE_CB provider);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
|
||||
#endif /* __INCsecTrustStoreh */
|
||||
Reference in New Issue
Block a user