Skip to content

Should caller/consumer handle the OpenSSL error? #399

@linuslin0

Description

@linuslin0

What's your question?

jwt-cpp doesn't handle the OpenSSL error after OpenSSL calls, is that intentional? Should consumer handle the OpenSSL error instead?

Additional Context

Several functions in jwt-cpp like ecdsa::verify() uses OpenSSL APIs. However the OpenSSL error(s) are not popped in case of failure. If caller/consumer doesn't explicitly handle/clear the OpenSSL error queue, then such error(s) will become stale.
I am wondering if this is done intentionally, that the caller should be responsible of handling any OpenSSL error that could be rasied within the jwt-cpp? Thanks.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions