mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-28 00:21:48 +03:00
@ -210,8 +210,8 @@ class GnuTLSServ(TLSProgram):
|
|||||||
'AEAD']}
|
'AEAD']}
|
||||||
|
|
||||||
def add_ciphersuites(self, *ciphersuites):
|
def add_ciphersuites(self, *ciphersuites):
|
||||||
for cihpersuite in ciphersuites:
|
for ciphersuite in ciphersuites:
|
||||||
self.priority_strings.extend(self.CIPHER_SUITE[cihpersuite])
|
self.priority_strings.extend(self.CIPHER_SUITE[ciphersuite])
|
||||||
|
|
||||||
SIGNATURE_ALGORITHM = {
|
SIGNATURE_ALGORITHM = {
|
||||||
'ecdsa_secp256r1_sha256': ['SIGN-ECDSA-SECP256R1-SHA256'],
|
'ecdsa_secp256r1_sha256': ['SIGN-ECDSA-SECP256R1-SHA256'],
|
||||||
@ -284,8 +284,8 @@ class MbedTLSCli(TLSProgram):
|
|||||||
'TLS_AES_128_CCM_8_SHA256': 'TLS1-3-AES-128-CCM-8-SHA256'}
|
'TLS_AES_128_CCM_8_SHA256': 'TLS1-3-AES-128-CCM-8-SHA256'}
|
||||||
|
|
||||||
def add_ciphersuites(self, *ciphersuites):
|
def add_ciphersuites(self, *ciphersuites):
|
||||||
for cihpersuite in ciphersuites:
|
for ciphersuite in ciphersuites:
|
||||||
self.ciphersuites.append(self.CIPHER_SUITE[cihpersuite])
|
self.ciphersuites.append(self.CIPHER_SUITE[ciphersuite])
|
||||||
|
|
||||||
def add_signature_algorithms(self, *signature_algorithms):
|
def add_signature_algorithms(self, *signature_algorithms):
|
||||||
for sig_alg in signature_algorithms:
|
for sig_alg in signature_algorithms:
|
||||||
|
Reference in New Issue
Block a user