walterwkh
asked on
CryptImportKey gives error NTE_BAD_VER
When I call CryptImportKey() to import a public key which is exported from another key store, it gives error NTE_BAD_VER. Any idea what went wrong ?
ASKER
yes, I've already gone through the page when i get the error, but how to fix it ?
Check the version of the CSPs involved and update accordingly...
ASKER
sorry jkr, just discovered that it's because I am managing wrongly with the pointer to the keyblob, that's caused this error.
Thanks a lot anyway
Thanks a lot anyway
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
NTE_BAD_VER
The version number of the key BLOB does not match the CSP version. This usually indicates that the CSP needs to be upgraded.