projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add X509 version constants.
[openssl.git]
/
crypto
/
x509
/
t_req.c
diff --git
a/crypto/x509/t_req.c
b/crypto/x509/t_req.c
index 29479b08860c540ff565e01d0df98e0a2e27544c..095c16510099922c2ed94bf2344ca965d9367d2c 100644
(file)
--- a/
crypto/x509/t_req.c
+++ b/
crypto/x509/t_req.c
@@
-60,7
+60,7
@@
int X509_REQ_print_ex(BIO *bp, X509_REQ *x, unsigned long nmflags,
}
if (!(cflag & X509_FLAG_NO_VERSION)) {
l = X509_REQ_get_version(x);
- if (l
>= 0 && l <= 2
) {
+ if (l
== X509_REQ_VERSION_1
) {
if (BIO_printf(bp, "%8sVersion: %ld (0x%lx)\n", "", l + 1, (unsigned long)l) <= 0)
goto err;
} else {