]> granicus.if.org Git - pdns/commit
Remove three bytes from PKCS#11 ECPoint string
authorAki Tuomi <cmouse@cmouse.fi>
Sat, 16 May 2015 20:44:49 +0000 (23:44 +0300)
committerAki Tuomi <cmouse@cmouse.fi>
Sat, 16 May 2015 20:44:49 +0000 (23:44 +0300)
commit415c31ae95bf8e4e8262916d7d980a1504993740
treee20355e76ffc32f21f219489b781effe2033a44e
parente16fd59cb8fc839a26d56e3c49da89b763adf1ba
Remove three bytes from PKCS#11 ECPoint string

The CKA_EC_POINT is defined as 'DER encoded X9.62 octet string',
which means it has DER preamble and also compression indicator.
So we remove these from the result string, and pass it along,
to get valid ECPoint value for DNS use.
pdns/pkcs11signers.cc