Loading CHANGES +3 −0 Original line number Original line Diff line number Diff line Loading @@ -4,6 +4,9 @@ Changes between 0.9.6 and 0.9.7 [xx XXX 2000] Changes between 0.9.6 and 0.9.7 [xx XXX 2000] *) Constify the ENGINE code as a result of BIGNUM constification. [Richard Levitte] *) Make it so the openssl application has all engines loaded by default. *) Make it so the openssl application has all engines loaded by default. [Richard Levitte] [Richard Levitte] Loading crypto/engine/engine.h +4 −4 Original line number Original line Diff line number Diff line Loading @@ -105,12 +105,12 @@ extern "C" { /* mod_exp operation, calculates; r = a ^ p mod m /* mod_exp operation, calculates; r = a ^ p mod m * NB: ctx can be NULL, but if supplied, the implementation may use * NB: ctx can be NULL, but if supplied, the implementation may use * it if it wishes. */ * it if it wishes. */ typedef int (*BN_MOD_EXP)(BIGNUM *r, BIGNUM *a, const BIGNUM *p, typedef int (*BN_MOD_EXP)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx); const BIGNUM *m, BN_CTX *ctx); /* private key operation for RSA, provided seperately in case other /* private key operation for RSA, provided seperately in case other * RSA implementations wish to use it. */ * RSA implementations wish to use it. */ typedef int (*BN_MOD_EXP_CRT)(BIGNUM *r, BIGNUM *a, const BIGNUM *p, typedef int (*BN_MOD_EXP_CRT)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *q, const BIGNUM *dmp1, const BIGNUM *dmq1, const BIGNUM *q, const BIGNUM *dmp1, const BIGNUM *dmq1, const BIGNUM *iqmp, BN_CTX *ctx); const BIGNUM *iqmp, BN_CTX *ctx); Loading Loading @@ -178,7 +178,7 @@ ENGINE *ENGINE_new(void); int ENGINE_free(ENGINE *e); int ENGINE_free(ENGINE *e); int ENGINE_set_id(ENGINE *e, const char *id); int ENGINE_set_id(ENGINE *e, const char *id); int ENGINE_set_name(ENGINE *e, const char *name); int ENGINE_set_name(ENGINE *e, const char *name); int ENGINE_set_RSA(ENGINE *e, RSA_METHOD *rsa_meth); int ENGINE_set_RSA(ENGINE *e, const RSA_METHOD *rsa_meth); int ENGINE_set_DSA(ENGINE *e, DSA_METHOD *dsa_meth); int ENGINE_set_DSA(ENGINE *e, DSA_METHOD *dsa_meth); int ENGINE_set_DH(ENGINE *e, DH_METHOD *dh_meth); int ENGINE_set_DH(ENGINE *e, DH_METHOD *dh_meth); int ENGINE_set_RAND(ENGINE *e, RAND_METHOD *rand_meth); int ENGINE_set_RAND(ENGINE *e, RAND_METHOD *rand_meth); Loading @@ -195,7 +195,7 @@ int ENGINE_set_ctrl_function(ENGINE *e, ENGINE_CTRL_FUNC_PTR ctrl_f); * reference may be problematic! */ * reference may be problematic! */ const char *ENGINE_get_id(ENGINE *e); const char *ENGINE_get_id(ENGINE *e); const char *ENGINE_get_name(ENGINE *e); const char *ENGINE_get_name(ENGINE *e); RSA_METHOD *ENGINE_get_RSA(ENGINE *e); const RSA_METHOD *ENGINE_get_RSA(ENGINE *e); DSA_METHOD *ENGINE_get_DSA(ENGINE *e); DSA_METHOD *ENGINE_get_DSA(ENGINE *e); DH_METHOD *ENGINE_get_DH(ENGINE *e); DH_METHOD *ENGINE_get_DH(ENGINE *e); RAND_METHOD *ENGINE_get_RAND(ENGINE *e); RAND_METHOD *ENGINE_get_RAND(ENGINE *e); Loading crypto/engine/engine_int.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -82,7 +82,7 @@ struct engine_st { { const char *id; const char *id; const char *name; const char *name; RSA_METHOD *rsa_meth; const RSA_METHOD *rsa_meth; DSA_METHOD *dsa_meth; DSA_METHOD *dsa_meth; DH_METHOD *dh_meth; DH_METHOD *dh_meth; RAND_METHOD *rand_meth; RAND_METHOD *rand_meth; Loading crypto/engine/engine_list.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -430,7 +430,7 @@ int ENGINE_set_name(ENGINE *e, const char *name) return 1; return 1; } } int ENGINE_set_RSA(ENGINE *e, RSA_METHOD *rsa_meth) int ENGINE_set_RSA(ENGINE *e, const RSA_METHOD *rsa_meth) { { if((e == NULL) || (rsa_meth == NULL)) if((e == NULL) || (rsa_meth == NULL)) { { Loading Loading @@ -560,7 +560,7 @@ const char *ENGINE_get_name(ENGINE *e) return e->name; return e->name; } } RSA_METHOD *ENGINE_get_RSA(ENGINE *e) const RSA_METHOD *ENGINE_get_RSA(ENGINE *e) { { if(e == NULL) if(e == NULL) { { Loading crypto/engine/engine_openssl.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -72,7 +72,7 @@ /* This is the only function we need to implement as OpenSSL /* This is the only function we need to implement as OpenSSL * doesn't have a native CRT mod_exp. Perhaps this should be * doesn't have a native CRT mod_exp. Perhaps this should be * BN_mod_exp_crt and moved into crypto/bn/ ?? ... dunno. */ * BN_mod_exp_crt and moved into crypto/bn/ ?? ... dunno. */ static int openssl_mod_exp_crt(BIGNUM *r, BIGNUM *a, const BIGNUM *p, static int openssl_mod_exp_crt(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *q, const BIGNUM *dmp1, const BIGNUM *dmq1, const BIGNUM *q, const BIGNUM *dmp1, const BIGNUM *dmq1, const BIGNUM *iqmp, BN_CTX *ctx); const BIGNUM *iqmp, BN_CTX *ctx); Loading Loading @@ -112,7 +112,7 @@ ENGINE *ENGINE_openssl() } } /* Chinese Remainder Theorem, taken and adapted from rsa_eay.c */ /* Chinese Remainder Theorem, taken and adapted from rsa_eay.c */ static int openssl_mod_exp_crt(BIGNUM *r, BIGNUM *a, const BIGNUM *p, static int openssl_mod_exp_crt(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *q, const BIGNUM *dmp1, const BIGNUM *q, const BIGNUM *dmp1, const BIGNUM *dmq1, const BIGNUM *iqmp, BN_CTX *ctx) const BIGNUM *dmq1, const BIGNUM *iqmp, BN_CTX *ctx) { { Loading Loading
CHANGES +3 −0 Original line number Original line Diff line number Diff line Loading @@ -4,6 +4,9 @@ Changes between 0.9.6 and 0.9.7 [xx XXX 2000] Changes between 0.9.6 and 0.9.7 [xx XXX 2000] *) Constify the ENGINE code as a result of BIGNUM constification. [Richard Levitte] *) Make it so the openssl application has all engines loaded by default. *) Make it so the openssl application has all engines loaded by default. [Richard Levitte] [Richard Levitte] Loading
crypto/engine/engine.h +4 −4 Original line number Original line Diff line number Diff line Loading @@ -105,12 +105,12 @@ extern "C" { /* mod_exp operation, calculates; r = a ^ p mod m /* mod_exp operation, calculates; r = a ^ p mod m * NB: ctx can be NULL, but if supplied, the implementation may use * NB: ctx can be NULL, but if supplied, the implementation may use * it if it wishes. */ * it if it wishes. */ typedef int (*BN_MOD_EXP)(BIGNUM *r, BIGNUM *a, const BIGNUM *p, typedef int (*BN_MOD_EXP)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx); const BIGNUM *m, BN_CTX *ctx); /* private key operation for RSA, provided seperately in case other /* private key operation for RSA, provided seperately in case other * RSA implementations wish to use it. */ * RSA implementations wish to use it. */ typedef int (*BN_MOD_EXP_CRT)(BIGNUM *r, BIGNUM *a, const BIGNUM *p, typedef int (*BN_MOD_EXP_CRT)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *q, const BIGNUM *dmp1, const BIGNUM *dmq1, const BIGNUM *q, const BIGNUM *dmp1, const BIGNUM *dmq1, const BIGNUM *iqmp, BN_CTX *ctx); const BIGNUM *iqmp, BN_CTX *ctx); Loading Loading @@ -178,7 +178,7 @@ ENGINE *ENGINE_new(void); int ENGINE_free(ENGINE *e); int ENGINE_free(ENGINE *e); int ENGINE_set_id(ENGINE *e, const char *id); int ENGINE_set_id(ENGINE *e, const char *id); int ENGINE_set_name(ENGINE *e, const char *name); int ENGINE_set_name(ENGINE *e, const char *name); int ENGINE_set_RSA(ENGINE *e, RSA_METHOD *rsa_meth); int ENGINE_set_RSA(ENGINE *e, const RSA_METHOD *rsa_meth); int ENGINE_set_DSA(ENGINE *e, DSA_METHOD *dsa_meth); int ENGINE_set_DSA(ENGINE *e, DSA_METHOD *dsa_meth); int ENGINE_set_DH(ENGINE *e, DH_METHOD *dh_meth); int ENGINE_set_DH(ENGINE *e, DH_METHOD *dh_meth); int ENGINE_set_RAND(ENGINE *e, RAND_METHOD *rand_meth); int ENGINE_set_RAND(ENGINE *e, RAND_METHOD *rand_meth); Loading @@ -195,7 +195,7 @@ int ENGINE_set_ctrl_function(ENGINE *e, ENGINE_CTRL_FUNC_PTR ctrl_f); * reference may be problematic! */ * reference may be problematic! */ const char *ENGINE_get_id(ENGINE *e); const char *ENGINE_get_id(ENGINE *e); const char *ENGINE_get_name(ENGINE *e); const char *ENGINE_get_name(ENGINE *e); RSA_METHOD *ENGINE_get_RSA(ENGINE *e); const RSA_METHOD *ENGINE_get_RSA(ENGINE *e); DSA_METHOD *ENGINE_get_DSA(ENGINE *e); DSA_METHOD *ENGINE_get_DSA(ENGINE *e); DH_METHOD *ENGINE_get_DH(ENGINE *e); DH_METHOD *ENGINE_get_DH(ENGINE *e); RAND_METHOD *ENGINE_get_RAND(ENGINE *e); RAND_METHOD *ENGINE_get_RAND(ENGINE *e); Loading
crypto/engine/engine_int.h +1 −1 Original line number Original line Diff line number Diff line Loading @@ -82,7 +82,7 @@ struct engine_st { { const char *id; const char *id; const char *name; const char *name; RSA_METHOD *rsa_meth; const RSA_METHOD *rsa_meth; DSA_METHOD *dsa_meth; DSA_METHOD *dsa_meth; DH_METHOD *dh_meth; DH_METHOD *dh_meth; RAND_METHOD *rand_meth; RAND_METHOD *rand_meth; Loading
crypto/engine/engine_list.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -430,7 +430,7 @@ int ENGINE_set_name(ENGINE *e, const char *name) return 1; return 1; } } int ENGINE_set_RSA(ENGINE *e, RSA_METHOD *rsa_meth) int ENGINE_set_RSA(ENGINE *e, const RSA_METHOD *rsa_meth) { { if((e == NULL) || (rsa_meth == NULL)) if((e == NULL) || (rsa_meth == NULL)) { { Loading Loading @@ -560,7 +560,7 @@ const char *ENGINE_get_name(ENGINE *e) return e->name; return e->name; } } RSA_METHOD *ENGINE_get_RSA(ENGINE *e) const RSA_METHOD *ENGINE_get_RSA(ENGINE *e) { { if(e == NULL) if(e == NULL) { { Loading
crypto/engine/engine_openssl.c +2 −2 Original line number Original line Diff line number Diff line Loading @@ -72,7 +72,7 @@ /* This is the only function we need to implement as OpenSSL /* This is the only function we need to implement as OpenSSL * doesn't have a native CRT mod_exp. Perhaps this should be * doesn't have a native CRT mod_exp. Perhaps this should be * BN_mod_exp_crt and moved into crypto/bn/ ?? ... dunno. */ * BN_mod_exp_crt and moved into crypto/bn/ ?? ... dunno. */ static int openssl_mod_exp_crt(BIGNUM *r, BIGNUM *a, const BIGNUM *p, static int openssl_mod_exp_crt(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *q, const BIGNUM *dmp1, const BIGNUM *dmq1, const BIGNUM *q, const BIGNUM *dmp1, const BIGNUM *dmq1, const BIGNUM *iqmp, BN_CTX *ctx); const BIGNUM *iqmp, BN_CTX *ctx); Loading Loading @@ -112,7 +112,7 @@ ENGINE *ENGINE_openssl() } } /* Chinese Remainder Theorem, taken and adapted from rsa_eay.c */ /* Chinese Remainder Theorem, taken and adapted from rsa_eay.c */ static int openssl_mod_exp_crt(BIGNUM *r, BIGNUM *a, const BIGNUM *p, static int openssl_mod_exp_crt(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *q, const BIGNUM *dmp1, const BIGNUM *q, const BIGNUM *dmp1, const BIGNUM *dmq1, const BIGNUM *iqmp, BN_CTX *ctx) const BIGNUM *dmq1, const BIGNUM *iqmp, BN_CTX *ctx) { { Loading