OpenSC / pkcs11-helper

Library that simplifies the interaction with PKCS#11 providers for end-user applications using a simple API and optional OpenSSL engine
Other
66 stars 43 forks source link

Use URL encoding for binary values #69

Open saper opened 1 month ago

saper commented 1 month ago

If PKCS#11 URI format is desired, as proposed https://github.com/OpenSC/pkcs11-helper/pull/4, let's tell our binary serialization routines to accept and generate %20 instead of \x20.

dwmw2 commented 1 month ago

This is changing the legacy, serialisation format? Is there any need to do that? We should be using RFC7512 URIs by default and only accepting the legacy format for compatibility, surely? Changing the legacy format doesn't seem like it's going to help anything?

saper commented 1 month ago

This is PR is the first step towards PKCS#11 URLs. It shouldn't be merged at this stage. I just try to see how much we can re-use the existing code.