client_certificate.go 625 B

12345678910111213141516171819202122232425
  1. // SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly>
  2. // SPDX-License-Identifier: MIT
  3. // Package clientcertificate provides all the support Client Certificate types
  4. package clientcertificate
  5. // Type is used to communicate what
  6. // type of certificate is being transported
  7. //
  8. // https://www.iana.org/assignments/tls-parameters/tls-parameters.xhtml#tls-parameters-2
  9. type Type byte
  10. // ClientCertificateType enums
  11. const (
  12. RSASign Type = 1
  13. ECDSASign Type = 64
  14. )
  15. // Types returns all valid ClientCertificate Types
  16. func Types() map[Type]bool {
  17. return map[Type]bool{
  18. RSASign: true,
  19. ECDSASign: true,
  20. }
  21. }