Skip to content

Use autoconf to detect OpenSSL and libssl features #76779

Closed

Description

@tiran
BPO 32598
Nosy @tiran
PRs
  • bpo-32598: Use autoconf to detect usable OpenSSL #5242
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2018-01-20.12:21:53.184>
    created_at = <Date 2018-01-19.13:48:26.381>
    labels = ['extension-modules', 'type-bug', 'expert-installation', '3.7']
    title = 'Use autoconf to detect OpenSSL and libssl features'
    updated_at = <Date 2018-01-20.12:21:53.183>
    user = 'https://github.com/tiran'

    bugs.python.org fields:

    activity = <Date 2018-01-20.12:21:53.183>
    actor = 'christian.heimes'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-01-20.12:21:53.184>
    closer = 'christian.heimes'
    components = ['Extension Modules', 'Installation']
    creation = <Date 2018-01-19.13:48:26.381>
    creator = 'christian.heimes'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32598
    keywords = ['patch']
    message_count = 3.0
    messages = ['310277', '310338', '310339']
    nosy_count = 1.0
    nosy_names = ['christian.heimes']
    pr_nums = ['5242']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue32598'
    versions = ['Python 3.7']

    Activity

    1. tiran commented on Jan 19, 2018

      @tiran
      MemberAuthor

      Starting with bpo-31399 Python will require some OpenSSL 1.0.2 features. The features are not available in LibreSSL yet. There is no easy way to detect the feature from setup.py. The inc_dir variable in setup.py does not reflect CPPFLAG. I tried "self.compiler.preprocess()" but run into more issues. For example prints to stderr in error cases.

      https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html makes it easy to check for working OpenSSL. It uses either pkg-config or falls back to manual detection in common locations.

      Based on the M4 macro it is easy to check for features like working X509_VERIFY_PARAM_set1_host() function.

    2. tiran commented on Jan 20, 2018

      @tiran
      MemberAuthor

      New changeset ff5be6e by Christian Heimes in branch 'master':
      bpo-32598: Use autoconf to detect usable OpenSSL (bpo-5242)
      ff5be6e

    3. tiran commented on Jan 20, 2018

      @tiran
      MemberAuthor

      Thanks, Andrew

    4. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions