Skip to content

Commit a16557b

Browse files
committed
adding tls_cipher Pref
1 parent f72b890 commit a16557b

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

awscrt/aws_iot_metrics.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -207,14 +207,16 @@ def _minimum_tls_version_metrics_value(version):
207207
def _tls_cipher_preference_metrics_value(pref):
208208
"""Map TlsCipherPref to its single-character metrics value.
209209
210-
Mapping: PQ_TLSv1_0_2021_05->A, PQ_DEFAULT->B, TLSv1_2_2025_07->C.
211-
Returns None for DEFAULT.
210+
Mapping: PQ_TLSv1_0_2021_05->F, PQ_DEFAULT->H, TLSv1_2_2025_07->I.
211+
Letters A-E, G, J, K are reserved for cipher preferences exposed by
212+
other language SDKs but not by Python.
213+
Returns None for DEFAULT or any unrecognized value.
212214
"""
213215
from awscrt.io import TlsCipherPref
214216
mapping = {
215-
TlsCipherPref.PQ_TLSv1_0_2021_05: "A",
216-
TlsCipherPref.PQ_DEFAULT: "B",
217-
TlsCipherPref.TLSv1_2_2025_07: "C",
217+
TlsCipherPref.PQ_TLSv1_0_2021_05: "F",
218+
TlsCipherPref.PQ_DEFAULT: "H",
219+
TlsCipherPref.TLSv1_2_2025_07: "I",
218220
}
219221
return mapping.get(pref)
220222

0 commit comments

Comments
 (0)