Files
m241Neelima/vxworks-6.9/target/h/security/secVault.h
T
2026-07-30 18:09:00 +05:30

90 lines
2.0 KiB
C

/* secVault.h - Secrets repository library header file */
/*
* Copyright (c) 2015-2017, 2021 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 __INCsecVaulth
#define __INCsecVaulth
/* includes */
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/* defines */
#define SEC_VAULT_KEY_ID_MAX SEC_SECRET_KEY_ID_MAX
#define SEC_VAULT_MAX_SECRET SEC_SECRET_MAX_SECRET
#include <secSecret.h>
LOCAL int secVaultImport (const char * keyId, const char * key, int keyLen) _WRS_DEPRECATED("secVaultImport is deprecated. Use secSecretImport instead");
_WRS_INLINE int secVaultImport
(
const char * keyId,
const char * key,
int keyLen
)
{
return secSecretImport(keyId, key, keyLen);
}
LOCAL int secVaultGet (const char * keyId, char * key, int * keyLen) _WRS_DEPRECATED("secVaultGet is deprecated. Use secSecretGet instead");
_WRS_INLINE int secVaultGet
(
const char * keyId,
char * key,
int * keyLen
)
{
return (secSecretGet (keyId, key, keyLen));
}
LOCAL int secVaultDel (const char * keyId) _WRS_DEPRECATED("secVaultDel is deprecated. Use secSecretDel instead");
_WRS_INLINE int secVaultDel
(
const char * keyId
)
{
return secSecretDel(keyId);
}
/* KEP backend */
LOCAL STATUS secVaultKepGet (char * buf, int * len) _WRS_DEPRECATED("secVaultKepGet is deprecated. Use secSecretKepGet instead");
_WRS_INLINE STATUS secVaultKepGet
(
char * buf, int * len
)
{
return secSecretKepGet(buf, len);
}
LOCAL SEC_VAULT_KEP_CB secVaultGetKepCb (void) _WRS_DEPRECATED("secVaultGetKepCb is deprecated. Use secSecretGetKepCb instead");
_WRS_INLINE SEC_VAULT_KEP_CB secVaultGetKepCb
(
void
)
{
return secSecretGetKepCb();
}
/* typedefs */
/* function declarations */
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* __INCsecVaulth */