summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/stack
diff options
context:
space:
mode:
authorjob <>2023-04-23 21:31:16 +0000
committerjob <>2023-04-23 21:31:16 +0000
commit4c20d9bfcef952ee5a32034ed25c792413465fde (patch)
tree6845cb5f4e2722640f5effb72fa388651a08a748 /src/lib/libcrypto/stack
parentaedbb67da548df0585f48b0c49d758c2366fea7f (diff)
downloadopenbsd-4c20d9bfcef952ee5a32034ed25c792413465fde.tar.gz
openbsd-4c20d9bfcef952ee5a32034ed25c792413465fde.tar.bz2
openbsd-4c20d9bfcef952ee5a32034ed25c792413465fde.zip
Add compliance checks for the X.509 version field
Check whether the X.509 version is in the range of valid version values, and also checks whether the version is consistent with fields new to those versions (such as X.509 v3 extensions). X.690 section 11.5 states: "The encoding of a set value or a sequence value shall not include an encoding for any component value which is equal to its default value." However, enforcing version 1 (value 0) to be absent reportedly caused some issues as recent as July 2020, so accept version 1 even if it is explicitly encoded. OK tb@ beck@
Diffstat (limited to 'src/lib/libcrypto/stack')
0 files changed, 0 insertions, 0 deletions