Skip to content

Commit

Permalink
tls: Pickle dataclasses instead of wrapper
Browse files Browse the repository at this point in the history
mbedtls 3 doesn't have as many public accessors

 * Pass configuration to mbedtls wrapper
 * Remove accessors
 * Remove now-tautological accessor tests
  • Loading branch information
Synss committed Apr 7, 2024
1 parent b3853c3 commit cface42
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 487 deletions.
2 changes: 1 addition & 1 deletion src/mbedtls/_tls.pxd
Expand Up @@ -414,13 +414,13 @@ cdef class _PSKSToreProxy:


cdef class MbedTLSConfiguration:
cdef object _configuration
cdef mbedtls_ssl_config _ctx
cdef _chain
cdef int *_ciphers
cdef const char **_protos
cdef _PSKSToreProxy _store
cdef _DTLSCookie _cookie
cdef object _max_fragmentation_length
# cdef'd because we aim at a non-writable structure.
cdef _set_validate_certificates(self, validate)
cdef _set_certificate_chain(self, chain)
Expand Down

0 comments on commit cface42

Please sign in to comment.