diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2006-06-01 12:43:39 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2006-06-01 12:43:39 +0000 |
commit | e0c1ea9038f6a9e33dff3c7654b2a1b97e3d0e2c (patch) | |
tree | e32d0ae5ab5b122a3ef0b527e41215d1efe731c1 /crypto/engine | |
parent | 6f88c6a634868a97d9613d6ec3663bf83a05d379 (diff) |
Fix error code. make update
Diffstat (limited to 'crypto/engine')
-rw-r--r-- | crypto/engine/Makefile | 9 | ||||
-rw-r--r-- | crypto/engine/eng_err.c | 2 | ||||
-rw-r--r-- | crypto/engine/engine.h | 2 | ||||
-rw-r--r-- | crypto/engine/tb_pkmeth.c | 4 |
4 files changed, 15 insertions, 2 deletions
diff --git a/crypto/engine/Makefile b/crypto/engine/Makefile index 8ef1b1b1a2..11a3f82246 100644 --- a/crypto/engine/Makefile +++ b/crypto/engine/Makefile @@ -262,6 +262,15 @@ tb_ecdsa.o: ../../include/openssl/opensslconf.h tb_ecdsa.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h tb_ecdsa.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h tb_ecdsa.o: ../../include/openssl/symhacks.h ../cryptlib.h eng_int.h tb_ecdsa.c +tb_pkmeth.o: ../../e_os.h ../../include/openssl/bio.h +tb_pkmeth.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h +tb_pkmeth.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h +tb_pkmeth.o: ../../include/openssl/err.h ../../include/openssl/lhash.h +tb_pkmeth.o: ../../include/openssl/opensslconf.h +tb_pkmeth.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h +tb_pkmeth.o: ../../include/openssl/safestack.h ../../include/openssl/stack.h +tb_pkmeth.o: ../../include/openssl/symhacks.h ../cryptlib.h eng_int.h +tb_pkmeth.o: tb_pkmeth.c tb_rand.o: ../../e_os.h ../../include/openssl/bio.h tb_rand.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h tb_rand.o: ../../include/openssl/e_os2.h ../../include/openssl/engine.h diff --git a/crypto/engine/eng_err.c b/crypto/engine/eng_err.c index 62db507ce2..8de1a4fb09 100644 --- a/crypto/engine/eng_err.c +++ b/crypto/engine/eng_err.c @@ -86,6 +86,7 @@ static ERR_STRING_DATA ENGINE_str_functs[]= {ERR_FUNC(ENGINE_F_ENGINE_GET_DEFAULT_TYPE), "ENGINE_GET_DEFAULT_TYPE"}, {ERR_FUNC(ENGINE_F_ENGINE_GET_DIGEST), "ENGINE_get_digest"}, {ERR_FUNC(ENGINE_F_ENGINE_GET_NEXT), "ENGINE_get_next"}, +{ERR_FUNC(ENGINE_F_ENGINE_GET_PKEY_METH), "ENGINE_get_pkey_meth"}, {ERR_FUNC(ENGINE_F_ENGINE_GET_PREV), "ENGINE_get_prev"}, {ERR_FUNC(ENGINE_F_ENGINE_INIT), "ENGINE_init"}, {ERR_FUNC(ENGINE_F_ENGINE_LIST_ADD), "ENGINE_LIST_ADD"}, @@ -149,6 +150,7 @@ static ERR_STRING_DATA ENGINE_str_reasons[]= {ERR_REASON(ENGINE_R_RSA_NOT_IMPLEMENTED),"rsa not implemented"}, {ERR_REASON(ENGINE_R_UNIMPLEMENTED_CIPHER),"unimplemented cipher"}, {ERR_REASON(ENGINE_R_UNIMPLEMENTED_DIGEST),"unimplemented digest"}, +{ERR_REASON(ENGINE_R_UNIMPLEMENTED_PUBLIC_KEY_METHOD),"unimplemented public key method"}, {ERR_REASON(ENGINE_R_VERSION_INCOMPATIBILITY),"version incompatibility"}, {0,NULL} }; diff --git a/crypto/engine/engine.h b/crypto/engine/engine.h index 985b0a9f49..ef6a91f021 100644 --- a/crypto/engine/engine.h +++ b/crypto/engine/engine.h @@ -724,6 +724,7 @@ void ERR_load_ENGINE_strings(void); #define ENGINE_F_ENGINE_GET_DEFAULT_TYPE 177 #define ENGINE_F_ENGINE_GET_DIGEST 186 #define ENGINE_F_ENGINE_GET_NEXT 115 +#define ENGINE_F_ENGINE_GET_PKEY_METH 192 #define ENGINE_F_ENGINE_GET_PREV 116 #define ENGINE_F_ENGINE_INIT 119 #define ENGINE_F_ENGINE_LIST_ADD 120 @@ -784,6 +785,7 @@ void ERR_load_ENGINE_strings(void); #define ENGINE_R_RSA_NOT_IMPLEMENTED 141 #define ENGINE_R_UNIMPLEMENTED_CIPHER 146 #define ENGINE_R_UNIMPLEMENTED_DIGEST 147 +#define ENGINE_R_UNIMPLEMENTED_PUBLIC_KEY_METHOD 101 #define ENGINE_R_VERSION_INCOMPATIBILITY 145 #ifdef __cplusplus diff --git a/crypto/engine/tb_pkmeth.c b/crypto/engine/tb_pkmeth.c index dfc7d0fab1..b99dea2190 100644 --- a/crypto/engine/tb_pkmeth.c +++ b/crypto/engine/tb_pkmeth.c @@ -122,8 +122,8 @@ const EVP_PKEY_METHOD *ENGINE_get_pkey_meth(ENGINE *e, int nid) ENGINE_PKEY_METHS_PTR fn = ENGINE_get_pkey_meths(e); if(!fn || !fn(e, &ret, NULL, nid)) { - ENGINEerr(ENGINE_F_ENGINE_GET_CIPHER, - ENGINE_R_UNIMPLEMENTED_CIPHER); + ENGINEerr(ENGINE_F_ENGINE_GET_PKEY_METH, + ENGINE_R_UNIMPLEMENTED_PUBLIC_KEY_METHOD); return NULL; } return ret; |