aboutsummaryrefslogtreecommitdiffstats
path: root/ext/openssl/ossl.h
diff options
context:
space:
mode:
authorBen Toews <mastahyeti@gmail.com>2018-08-08 10:04:44 -0600
committerSamuel Williams <samuel.williams@oriontransfer.co.nz>2019-10-01 11:25:06 +1300
commit8fe8e13bec51b06868ed527c54f81e38faaa5f6f (patch)
treefa9b2a2ca0bc77fd7886855851fce6873393a04d /ext/openssl/ossl.h
parentfe642e702bf460e04f22c870e21a0810fffcb442 (diff)
downloadruby-openssl-8fe8e13bec51b06868ed527c54f81e38faaa5f6f.tar.gz
ts: address minor feedback from rhenium (more changes coming)
- make some global variables static instead of extern - get rid of GetTsReqPtr/GetTsRespPtr functions - don't use c99 comments - fix some leaks - clarify what numeric type is returned (Integer or BN, never Fixnum) - typos - add missing checks, remove unecessary checks - use OPENSSL_NO_TS instead of our own macros checking for ts support - use EVP_{digest-name} instead of looking up algos by NID - don't differentiate between failure reasons when verifying - rename Response#pkcs7 to #token
Diffstat (limited to 'ext/openssl/ossl.h')
-rw-r--r--ext/openssl/ossl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/openssl/ossl.h b/ext/openssl/ossl.h
index 0b2e5056..2f76bdc8 100644
--- a/ext/openssl/ossl.h
+++ b/ext/openssl/ossl.h
@@ -28,7 +28,7 @@
#include <openssl/rand.h>
#include <openssl/conf.h>
#include <openssl/conf_api.h>
-#if HAVE_OPENSSL_TS_H
+#ifndef OPENSSL_NO_TS
#include <openssl/ts.h>
#endif
#include <openssl/crypto.h>
@@ -171,7 +171,7 @@ void ossl_debug(const char *, ...);
#include "ossl_pkey.h"
#include "ossl_rand.h"
#include "ossl_ssl.h"
-#if HAVE_OPENSSL_TS_H
+#ifndef OPENSSL_NO_TS
#include "ossl_ts.h"
#endif
#include "ossl_version.h"