Skip to content

Commit

Permalink
use helper method from OpenSSL
Browse files Browse the repository at this point in the history
  • Loading branch information
johubertj committed Jan 28, 2025
1 parent ac2a898 commit 125a91d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/integrationv2/utils.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
# SPDX-License-Identifier: Apache-2.0
import subprocess
from common import Certificates, Protocols
from providers import S2N
from providers import OpenSSL, S2N
from global_flags import get_flag, S2N_FIPS_MODE


Expand Down Expand Up @@ -39,12 +38,7 @@ def get_expected_openssl_version(protocol):
}.get(protocol.value)

def get_openssl_version():
result = subprocess.run(
["openssl", "version"], shell=False, capture_output=True, text=True
)
version_str = result.stdout.split(" ")
version_openssl = version_str[1] # This will return just the version number
return version_openssl
return OpenSSL.get_version()

def get_expected_gnutls_version(protocol):
return {
Expand Down

0 comments on commit 125a91d

Please sign in to comment.