Skip to content

Commit

Permalink
Change parseExtension function to be public (#1584)
Browse files Browse the repository at this point in the history
Signed-off-by: John Kjell <[email protected]>
  • Loading branch information
jkjell authored Feb 28, 2024
1 parent 8a94ed1 commit c0c61bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/certificate/extensions.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ func (e Extensions) Render() ([]pkix.Extension, error) {
return exts, nil
}

func parseExtensions(ext []pkix.Extension) (Extensions, error) {
func ParseExtensions(ext []pkix.Extension) (Extensions, error) {
out := Extensions{}

for _, e := range ext {
Expand Down
2 changes: 1 addition & 1 deletion pkg/certificate/extensions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func TestExtensions(t *testing.T) {
t.Errorf("Render: %s", diff)
}

parse, err := parseExtensions(render)
parse, err := ParseExtensions(render)
if err != nil {
t.Fatalf("ParseExtensions: err = %v", err)
}
Expand Down

0 comments on commit c0c61bb

Please sign in to comment.