rustls / rustls-ffi

Use Rustls from any language
Other
124 stars 31 forks source link

client auth type constructor changes #299

Closed cpu closed 1 year ago

cpu commented 1 year ago

Resolves https://github.com/rustls/rustls-ffi/issues/296 See https://github.com/rustls/rustls/commit/cd4f5c9 for more information.

server: NoClientAuth::new -> ::boxed - be4c8755f87476667423e7034de4a633a99f74f2

The upstream constructor for NoClientAuth was renamed from new to boxed. This commit updates the rustls-ffi to use the new name.

cipher: client verifiers constructor changes. - 1da22cadbaf995c2039290fefae2779d252b00f6

Both AllowAnyAuthenticatedClient and AllowAnyAnonymousOrAuthenticatedClient had their new constructors changed from returning an Arc to returning Self and offering a boxed for wrapping in an Arc.

This commit updates the rustls_client_cert_verifier and rustls_client_cert_verifier_optional fns to accommodate this change.