Skip to content

Way to unset X509_VERIFY_PARAM fields #2673

@daurnimator

Description

@daurnimator

Currently there is no API to clear various members of a X509_VERIFY_PARAM e.g. an IP set with X509_VERIFY_PARAM_set1_ip

In my particular case, I have a SSL_CTX* that has an ip set, however I want to un-set it in a single one of the derived SSL* objects

Potential solutions:

  • A flag (modifiable via X509_VERIFY_PARAM_set_flags) that allows to opt-out of a field
  • X509_VERIFY_PARAM_set1_ip(param, NULL, 0) should clear the value

Metadata

Metadata

Assignees

No one assigned

    Labels

    branch: 1.1.1Merge to OpenSSL_1_1_1-stable branchbranch: masterMerge to master branchtriaged: bugThe issue/pr is/fixes a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions