Skip to content

Commit

Permalink
Merge branch 'ingela/public_key/ext-key-usage-ca/OTP-19240' into maint
Browse files Browse the repository at this point in the history
* ingela/public_key/ext-key-usage-ca/OTP-19240:
  public_key: Also apply to end entity cert
  • Loading branch information
IngelaAndin committed Dec 5, 2024
2 parents a8e2f23 + ccc44c9 commit f14d8e0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/public_key/src/pubkey_cert.erl
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,7 @@ validate_extensions(Cert, asn1_NOVALUE, ValidationState, ExistBasicCon,
SelfSigned, UserState, VerifyFun) ->
validate_extensions(Cert, [], ValidationState, ExistBasicCon,
SelfSigned, UserState, VerifyFun);

validate_extensions(Cert, [], ValidationState, basic_constraint, _SelfSigned,
UserState0, VerifyFun) ->
UserState = validate_ext_key_usage(Cert, UserState0, VerifyFun, ca),
Expand Down

0 comments on commit f14d8e0

Please sign in to comment.