Skip to content

Commit

Permalink
Merge branch 'main' into vc_fields
Browse files Browse the repository at this point in the history
* main:
  Refactor constant name SAN_TYPE_OTHER_NAME to SanTypeOtherName
  • Loading branch information
rolandgroen committed Nov 1, 2024
2 parents d7de4f9 + 296bd1a commit 956e42c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x509_cert/x509_utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type SanType pkix.AttributeTypeAndValue
type SanTypeName string

const (
SAN_TYPE_OTHER_NAME SanTypeName = "otherName"
SanTypeOtherName SanTypeName = "otherName"
)

func FindOtherName(certificate *x509.Certificate) (string, SanTypeName, error) {
Expand Down
2 changes: 1 addition & 1 deletion x509_cert/x509_utils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func TestFindOtherName(t *testing.T) {
name: "ValidOtherName",
certificate: chain[0],
wantName: "2.16.528.1.1007.99.2110-1-900030787-S-90000380-00.000-11223344",
wantType: SAN_TYPE_OTHER_NAME,
wantType: SanTypeOtherName,
wantErr: false,
},
{
Expand Down

0 comments on commit 956e42c

Please sign in to comment.