diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2015-08-31 12:58:07 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2015-08-31 20:58:33 +0100 |
commit | 124055a96e8533735b32e6af0fa7913c100ffad2 (patch) | |
tree | 1ba18c2a6162f80c8eb8514ffc3f005da879ec8d /crypto/x509/x509_req.c | |
parent | bc3686dfb031445c5af9a256a46a57dc1277a190 (diff) | |
download | openssl-124055a96e8533735b32e6af0fa7913c100ffad2.tar.gz |
make X509_REQ opaque
Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'crypto/x509/x509_req.c')
-rw-r--r-- | crypto/x509/x509_req.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crypto/x509/x509_req.c b/crypto/x509/x509_req.c index b6c46980a0..70e27b8306 100644 --- a/crypto/x509/x509_req.c +++ b/crypto/x509/x509_req.c @@ -63,6 +63,7 @@ #include <openssl/asn1.h> #include <openssl/asn1t.h> #include <openssl/x509.h> +#include "internal/x509_int.h" #include <openssl/objects.h> #include <openssl/buffer.h> #include <openssl/pem.h> @@ -303,3 +304,13 @@ int X509_REQ_add1_attr_by_txt(X509_REQ *req, return 1; return 0; } + +long X509_REQ_get_version(X509_REQ *req) +{ + return ASN1_INTEGER_get(req->req_info->version); +} + +X509_NAME *X509_REQ_get_subject_name(X509_REQ *req) +{ + return req->req_info->subject; +} |