STORE 'file' scheme loader: fix try_decode_params() to check ambiguity
authorRichard Levitte <levitte@openssl.org>
Wed, 5 Jul 2017 18:54:08 +0000 (20:54 +0200)
committerRichard Levitte <levitte@openssl.org>
Wed, 5 Jul 2017 20:38:00 +0000 (22:38 +0200)
commit11d66064f36e6968faffb48a2cfd58cbe37eff0c
tree421b6a01de0ec2732dab94cc13fe1d20f30970b0
parentc8feba723a33e15201009d716d9ead02e653dfe6
STORE 'file' scheme loader: fix try_decode_params() to check ambiguity

The way try_decode_params works in raw more, it would take the first ASN1
that could decode and return a STORE_INFO with the resulting EVP_PKEY.
This change has it go through all the matching ASN1 methods and properly
check if there's more than one match, i.e. an ambiguity.

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
(Merged from https://github.com/openssl/openssl/pull/3863)
crypto/store/loader_file.c