

#include <openssl/store.h>

static char *type_strings[] = {
    "Name",                      
    "Parameters",                
    "Public key",                
    "Pkey",                      
    "Certificate",               
    "CRL"                        
};

const char *OSSL_STORE_INFO_type_string(int type)
{
    int types = sizeof(type_strings) / sizeof(type_strings[0]);

    if (type < 1 || type > types)
        return NULL;

    return type_strings[type - 1];
}
