-
Notifications
You must be signed in to change notification settings - Fork 455
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test case emulating Windows SCEP client
- Loading branch information
Showing
12 changed files
with
2,519 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package legacyx509 | ||
|
||
import "fmt" | ||
|
||
// legacyGodebugSetting is a type mimicking Go's internal godebug package | ||
// settings, which are used to enable / disable certain functionalities at | ||
// build time. | ||
type legacyGodebugSetting int | ||
|
||
func (s legacyGodebugSetting) Value() string { | ||
return fmt.Sprintf("%d", s) | ||
} | ||
|
||
func (s legacyGodebugSetting) IncNonDefault() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* | ||
Package legacyx509 is a copy of certain parts of Go's crypto/x509 package. | ||
It is based on Go 1.23, and has just the parts copied over required for | ||
parsing X509 certificates. | ||
The copy in this repository is intended to be used for preparing a SCEP request | ||
emulating a Windows SCEP client. The Windows SCEP client markes the authority | ||
key identifier as critical in the self-signed SCEP enrolment certificate, which | ||
fails to parse using the standard X509 parser in Go 1.23 and later. | ||
This is itself a copy from the copy in our PKCS7 package. We currently don't | ||
intend to maintain that in an importable package, since we only need these copies | ||
for testing purposes, hence needing another copy of the code. | ||
*/ | ||
|
||
package legacyx509 |
Oops, something went wrong.