Skip to content

Commit

Permalink
public_key: use OID macros in public_key_SUITE
Browse files Browse the repository at this point in the history
  • Loading branch information
u3s committed Aug 14, 2023
1 parent 3b94972 commit 95f08e0
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions lib/public_key/test/public_key_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1347,14 +1347,15 @@ ocsp_extensions() ->
[{doc, "Check OCSP extensions"}].
ocsp_extensions(_Config) ->
Nonce = <<4,8,66,243,220,236,16,118,51,215>>,
ExpectedExtentions = [{'Extension',
{1,3,6,1,5,5,7,48,1,2},
asn1_DEFAULT,
<<4,8,66,243,220,236,16,118,51,215>>},
{'Extension',
{1,3,6,1,5,5,7,48,1,4},
asn1_DEFAULT,
<<48,11,6,9,43,6,1,5,5,7,48,1,1>>}],
ExpectedExtentions =
[{'Extension',
?'id-pkix-ocsp-nonce',
asn1_DEFAULT,
<<4,8,66,243,220,236,16,118,51,215>>},
{'Extension',
?'id-pkix-ocsp-response',
asn1_DEFAULT,
<<48,11,6,9,43,6,1,5,5,7,48,1,1>>}],
ExpectedExtentions = public_key:ocsp_extensions(Nonce).

pkix_ocsp_validate() ->
Expand Down

0 comments on commit 95f08e0

Please sign in to comment.