Skip to content
Permalink
Browse files

fix(x509) decrease by set_version by 1 per standard

  • Loading branch information...
fffonion committed Oct 22, 2019
1 parent 1b7cad6 commit b6ea5b933aadfb8284f7486eb33d8a4c21b7a6de
@@ -6,7 +6,7 @@ end


local _M = {
_VERSION = '0.2.0',
_VERSION = '0.2.1',
version = require("resty.openssl.version"),
pkey = require("resty.openssl.pkey"),
digest = require("resty.openssl.digest"),
@@ -275,6 +275,11 @@ local attributes = {
{
field = "version",
typ = "number",
-- Note: this is defined by standards (X.509 et al) to be one less than the certificate version.
-- So a version 3 certificate will return 2 and a version 1 certificate will return 0.
from = function(x)
return x - 1
end,
to = tonumber,
},
}
@@ -1,5 +1,5 @@
package = "lua-resty-openssl"
version = "0.2.0-1"
version = "0.2.1-1"
source = {
url = "git+https://github.com/fffonion/lua-resty-openssl.git"
}

0 comments on commit b6ea5b9

Please sign in to comment.
You can’t perform that action at this time.