@ -2,15 +2,12 @@
# ifndef KEYRING_MIN_H_
# ifndef KEYRING_MIN_H_
# define KEYRING_MIN_H_
# define KEYRING_MIN_H_
# include "pg_config_manual.h"
/* This is a minimal header that doesn't depend on postgres headers to avoid a type conflict with libkmip */
/* This is a minimal header that doesn't depend on postgres headers to avoid a type conflict with libkmip */
typedef unsigned int Oid ;
# define MAX_PROVIDER_NAME_LEN 128 / * pg_tde_key_provider's provider_name
# define MAX_PROVIDER_NAME_LEN 128 / * pg_tde_key_provider's provider_name
* size */
* size */
# define MAX_KEYRING_OPTION_LEN 1024
# define MAX_KEYRING_OPTION_LEN 1024
typedef enum ProviderType
typedef enum ProviderType
{
{
UNKNOWN_KEY_PROVIDER ,
UNKNOWN_KEY_PROVIDER ,
@ -61,14 +58,6 @@ typedef struct TDEKeyringRoutine
void ( * keyring_store_key ) ( GenericKeyring * keyring , KeyInfo * key ) ;
void ( * keyring_store_key ) ( GenericKeyring * keyring , KeyInfo * key ) ;
} TDEKeyringRoutine ;
} TDEKeyringRoutine ;
/*
* Keyring type name must be in sync with catalog table
* defination in pg_tde - - 1.0 SQL
*/
# define FILE_KEYRING_TYPE "file"
# define VAULTV2_KEYRING_TYPE "vault-v2"
# define KMIP_KEYRING_TYPE "kmip"
typedef struct FileKeyring
typedef struct FileKeyring
{
{
GenericKeyring keyring ; /* Must be the first field */
GenericKeyring keyring ; /* Must be the first field */