Yes, I found in keyinfo.c (line 692) where to stop the process and
return (see following):
tmpKey = xmlSecKeysMngrFindKey(keyInfoCtx->keysMngr, newName,
keyInfoCtx);
if(tmpKey != NULL) {
} else if
(keyInfoCtx->flags&XMLSEC_KEYINFO_FLAGS_KEYNAME_STOP_ON_UNKN
Doesn't look like it was implemented :)
https://github.com/lsh123/xmlsec/search?q=XMLSEC_KEYINFO_FLAGS_KEYNAME_STOP_ON_UNKNOWN
https://github.com/lsh123/xmlsec/commit/914f5ba36b26682b1857caecd63145c141f98663
Should be a simple change around here:
https://github.com/lsh123/xmlsec/blob/a181a96b5
Hi,
Can someone tell me how the flag
XMLSEC_KEYINFO_FLAGS_KEYNAME_STOP_ON_UNKNOWN is suppose to work ?
I was expecting that xmlSecEncCtxDecrypt() fails when that flag is set
because the KeyName in my encrypted document is not available in the key
store, but it found actually the key because