Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libopensc: 'init', 'format', 'compare', 'is-valid' OID procedures #90

Closed
wants to merge 1 commit into from

Conversation

viktorTarasov
Copy link
Member

In a reason of number of bugs(*) that concern the OID management, the general usage OID procedures 'init', 'format', 'compare', 'is-valid' are introduced.

These procedures are to be used by all actors: libopensc, pkcs15, pkcs11, tools, ....

(*)
This bug reported by Andreas Schwier :
8e75d97#commitcomment-1792477

In pkcs15-algo sc_asn1_get_algorithm_info() can return the OID not full length and without ending '-1' value:
https://github.com/OpenSC/OpenSC/blob/staging/src/libopensc/pkcs15-algo.c#L452
https://github.com/OpenSC/OpenSC/blob/staging/src/libopensc/pkcs15-algo.c#L459

In a reason of number of bugs(*) that concern the OID management,
the general usage OID procedures 'init', 'format', 'compare', 'is-valid' are introduced.
These procedures should be used by all actors: libopensc, pkcs15, pkcs11, tools, ....

(*)
This bug reported by Andreas Schwier :
OpenSC@8e75d97#commitcomment-1792477

In pkcs15-algo sc_asn1_get_algorithm_info() can return the OID without ending '-1' values:
https://github.com/OpenSC/OpenSC/blob/staging/src/libopensc/pkcs15-algo.c#L452
https://github.com/OpenSC/OpenSC/blob/staging/src/libopensc/pkcs15-algo.c#L459
@viktorTarasov
Copy link
Member Author

applied in 58b4304

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant