Commit Graph

14 Commits (22337da18ce4c39af87779ddd74cf46d311440c6)

Author SHA1 Message Date
Mariano Cano 68a89fbb02 Split Go 1.19 problematic with build tags 2 years ago
Shulhan 0e7257a236
kms/uri: fix test on Parse for the next Go release
The next Go release add field OmitHost to url.URL [1] which cause the
TestParse fail.
Since the CI supports two consecutive Go versions at the same times, we
copy the uri_test.go to uri_119_test.go for testing with Go 1.19.

While at it, print the got and want object using the same format
(%#v) and type (*URL) for consistency.

[1] https://go-review.googlesource.com/c/go/+/391294
2 years ago
Herman Slatman e7a988b2cd
Pin golangci-lint to v1.43.0 and fix issues 3 years ago
Mariano Cano 44f0d61354 Fix typo. 3 years ago
Mariano Cano f1ef3fb351 Add GetBool(s string) bool to URI type. 3 years ago
Mariano Cano abd78e2d2a Make kms uri compatible with Go 1.17.
Go 1.17 introduces a change in the net/url package disallowing the
use of semicolon (;) in URL queries. We used url.ParseQuery to
decode the opaque string that is semicolon separated. This change
replaces the semicolon with ampersands before decoding it.
3 years ago
Mariano Cano d03c088ab7 Add test cases for uris with only the schema. 3 years ago
Mariano Cano f6cbd9dc88 Fix typos. 3 years ago
Mariano Cano 3fdab93ab8 Add missing file. 3 years ago
Mariano Cano a74fc7a0b2 Remove unnecessary methods and add missing tests. 3 years ago
Mariano Cano 294f84b8d4 Add initial set of unit tests for pkcs11 kms. 3 years ago
Mariano Cano 8dca652bc7 Add support for PKCS #11 KMS.
The implementation works with YubiHSM2. Unit tests are still pending.

Fixes #301
3 years ago
Mariano Cano 6c9cd7050c Add test with query strings. 4 years ago
Mariano Cano b0f768a3fb Add implementation of URIs for KMS.
Implementation is based on the PKCS #11 URI Scheme RFC
https://tools.ietf.org/html/rfc7512
4 years ago