Vendor github.com/square/go-jose@789a4c4bd4c118f7564954f441b29c153ccd6a96

This is to be used by kubeadm (#31221) and kube-discovery.
It adds dummy code to make verification scripts pass.

[xref kubernetes/features#11]
This commit is contained in:
Ilya Dmitrichenko
2016-09-07 11:05:37 +01:00
parent 4387dcbdd5
commit c1e935af63
35 changed files with 8265 additions and 0 deletions

13
vendor/github.com/square/go-jose/json/README.md generated vendored Normal file
View File

@@ -0,0 +1,13 @@
# Safe JSON
This repository contains a fork of the `encoding/json` package from Go 1.6.
The following changes were made:
* Object deserialization uses case-sensitive member name matching instead of
[case-insensitive matching](https://www.ietf.org/mail-archive/web/json/current/msg03763.html).
This is to avoid differences in the interpretation of JOSE messages between
go-jose and libraries written in other languages.
* When deserializing a JSON object, we check for duplicate keys and reject the
input whenever we detect a duplicate. Rather than trying to work with malformed
data, we prefer to reject it right away.