mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/openssl/extconf.rb: should check ERR_peek_last_error().
[ruby-dev:27597] * ext/openssl/ossl.c (ossl_raise): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ab509c0edb
commit
79bf99f7b2
3 changed files with 14 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
Tue Nov 01 10:48:49 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||
|
||||
* ext/openssl/extconf.rb: should check ERR_peek_last_error().
|
||||
[ruby-dev:27597]
|
||||
|
||||
* ext/openssl/ossl.c (ossl_raise): ditto.
|
||||
|
||||
Mon Oct 31 05:46:08 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
|
||||
|
||||
* ext/openssl/ossl_cipher.c (ossl_cipher_update): input data must
|
||||
|
|
|
@ -62,6 +62,7 @@ unless have_header("openssl/conf_api.h")
|
|||
end
|
||||
|
||||
message "=== Checking for OpenSSL features... ===\n"
|
||||
have_func("ERR_peek_last_error")
|
||||
have_func("BN_mod_add")
|
||||
have_func("BN_mod_sqr")
|
||||
have_func("BN_mod_sub")
|
||||
|
|
|
@ -278,9 +278,14 @@ ossl_raise(VALUE exc, const char *fmt, ...)
|
|||
va_list args;
|
||||
char buf[BUFSIZ];
|
||||
const char *msg;
|
||||
long e = ERR_peek_last_error();
|
||||
long e;
|
||||
int len = 0;
|
||||
|
||||
#ifdef HAVE_ERR_PEEK_LAST_ERROR
|
||||
e = ERR_peek_last_error();
|
||||
#else
|
||||
e = ERR_peek_error();
|
||||
#endif
|
||||
if (fmt) {
|
||||
va_start(args, fmt);
|
||||
len = vsnprintf(buf, BUFSIZ, fmt, args);
|
||||
|
|
Loading…
Reference in a new issue