From 598d66f6b2d1ab34dcd6db3bed70c59836a6206a Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sun, 12 Sep 2021 15:40:57 +0900 Subject: [ruby/openssl] Separate formatting from ossl_make_error Just append OpenSSL error reason to the given message string object, which would be alreadly formatted. Suppress -Wformat-security warning in `ossl_tsfac_create_ts`. https://github.com/ruby/openssl/commit/11b1d8a6b8 --- ext/openssl/ossl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext/openssl/ossl.h') diff --git a/ext/openssl/ossl.h b/ext/openssl/ossl.h index 07d789e0f8..65d022c7f3 100644 --- a/ext/openssl/ossl.h +++ b/ext/openssl/ossl.h @@ -121,6 +121,8 @@ int ossl_pem_passwd_cb(char *, int, int, void *); * ERRor messages */ PRINTF_ARGS(NORETURN(void ossl_raise(VALUE, const char *, ...)), 2, 3); +/* Make exception instance from str and OpenSSL error reason string. */ +VALUE ossl_make_error(VALUE exc, VALUE str); /* Clear OpenSSL error queue. If dOSSL is set, rb_warn() them. */ void ossl_clear_error(void); -- cgit v1.2.3