aboutsummaryrefslogtreecommitdiffstats
path: root/ossl_x509cert.c
diff options
context:
space:
mode:
authorMichal Rokos <m.rokos@sh.cvut.cz>2002-07-09 16:15:13 +0000
committerMichal Rokos <m.rokos@sh.cvut.cz>2002-07-09 16:15:13 +0000
commit22a76c4b995c9bc5df10fc6f3493ddf4e8263365 (patch)
tree50ecd0f752baa9f32ca6296d6c4e7ea7a492e04a /ossl_x509cert.c
parent3d2cb9ce8241f8891d89e5f2247d065342661f13 (diff)
downloadruby-openssl-history-22a76c4b995c9bc5df10fc6f3493ddf4e8263365.tar.gz
Minor cleanups (use RSTRING after StringValue)
Diffstat (limited to 'ossl_x509cert.c')
-rw-r--r--ossl_x509cert.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ossl_x509cert.c b/ossl_x509cert.c
index 7bdc175..343606b 100644
--- a/ossl_x509cert.c
+++ b/ossl_x509cert.c
@@ -64,7 +64,7 @@ ossl_x509_new_from_file(VALUE filename)
SafeStringValue(filename);
- if (!(fp = fopen(StringValuePtr(filename), "r"))) {
+ if (!(fp = fopen(RSTRING(filename)->ptr, "r"))) {
ossl_raise(eX509CertError, "%s", strerror(errno));
}
x509 = PEM_read_X509(fp, NULL, NULL, NULL);