commit | 7f57b076a60235a3b8c6bec703efde40c6418d07 | [log] [tgz] |
---|---|---|
author | Dr. Stephen Henson <steve@openssl.org> | Thu May 11 21:33:00 2006 +0000 |
committer | Dr. Stephen Henson <steve@openssl.org> | Thu May 11 21:33:00 2006 +0000 |
tree | 0fa0453dc3373146107613c09a5d599a57de02cc | |
parent | 7144c4212a18e01bf805169ad1f3fdd885975759 [diff] [blame] |
New functions to get key types without dereferncing EVP_PKEY. More error checking for RSA pmeth.
diff --git a/crypto/evp/p_lib.c b/crypto/evp/p_lib.c index 730520f..752547d 100644 --- a/crypto/evp/p_lib.c +++ b/crypto/evp/p_lib.c
@@ -297,6 +297,16 @@ return NID_undef; } +int EVP_PKEY_id(const EVP_PKEY *pkey) + { + return pkey->type; + } + +int EVP_PKEY_base_id(const EVP_PKEY *pkey) + { + return EVP_PKEY_type(pkey->type); + } + void EVP_PKEY_free(EVP_PKEY *x) { int i;