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