Fixes and support for ApprovalSignature and TimeStampSignature

This commit is contained in:
Paul van Brouwershaven
2024-11-14 13:00:58 +01:00
parent 0899875647
commit 7946d5266d
20 changed files with 1204 additions and 841 deletions

27
sign/certtype_string.go Normal file
View File

@@ -0,0 +1,27 @@
// Code generated by "stringer -type=CertType"; DO NOT EDIT.
package sign
import "strconv"
func _() {
// An "invalid array index" compiler error signifies that the constant values have changed.
// Re-run the stringer command to generate them again.
var x [1]struct{}
_ = x[CertificationSignature-1]
_ = x[ApprovalSignature-2]
_ = x[UsageRightsSignature-3]
_ = x[TimeStampSignature-4]
}
const _CertType_name = "CertificationSignatureApprovalSignatureUsageRightsSignatureTimeStampSignature"
var _CertType_index = [...]uint8{0, 22, 39, 59, 77}
func (i CertType) String() string {
i -= 1
if i >= CertType(len(_CertType_index)-1) {
return "CertType(" + strconv.FormatInt(int64(i+1), 10) + ")"
}
return _CertType_name[_CertType_index[i]:_CertType_index[i+1]]
}