/*
* Copyright (c) 1995-2000 Intel Corporation. All rights reserved.
*/
/*
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#include <stdlib.h>
#include <string.h>
#include <kmfapiP.h>
typedef struct {
} KMF_OID_ID;
/*
* The following table defines the mapping of AlgOID's to AlgID's.
*/
};
/*
* Name: x509_algid_to_algoid
*
* Description:
* This function maps the specified AlgID to the corresponding
* Algorithm OID.
*
* Parameters:
* alg_int - AlgID to be mapped.
*
* Return value:
* Pointer to OID structure and NULL in case of failure.
*
*/
KMF_OID *
{
int i;
switch (alg_int) {
case KMF_ALGID_NONE:
return (NULL);
default:
for (i = 0; i < NUM_ALGOIDS; i++) {
return (ALGOID_ID_Table[i].AlgOID);
}
break;
}
return (NULL);
}
/*
* Name: x509_algoid_to_algid
*
* Description:
* This function maps the specified Algorithm OID to the corresponding
* AlgID.
*
* Parameters:
* Oid - OID to be mapped.
*
* Return value:
* Algorithm ID and KMF_ALGID_NONE in case of failures.
*/
{
int i;
return (KMF_ALGID_NONE);
}
for (i = 0; i < NUM_ALGOIDS; i++) {
return (ALGOID_ID_Table[i].AlgID);
}
return (KMF_ALGID_NONE);
}