Skip to content
Snippets Groups Projects
Commit 8ec681f3 authored by Niels Möller's avatar Niels Möller
Browse files

Fix parse_private_key.

Rev: lib/modules/Standards.pmod/PKCS.pmod/RSA.pmod:1.5
parent 344262c3
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,7 @@ object parse_private_key(string key)
WERROR(sprintf("rsa->parse_private_key: asn1 = %O\n", a));
if (!a
|| (a[0] != "SEQUENCE")
|| (sizeof(a[1]) != 10)
|| (sizeof(a[1]) != 9)
|| (sizeof(column(a[1], 0) - ({ "INTEGER" })))
|| a[1][0][1])
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment