Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(207)

Side by Side Diff: net/cert/jwk_serializer.h

Issue 65353002: Update JWK output to match latest draft (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | net/cert/jwk_serializer_nss.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_CERT_JWK_SERIALIZER_H_ 5 #ifndef NET_CERT_JWK_SERIALIZER_H_
6 #define NET_CERT_JWK_SERIALIZER_H_ 6 #define NET_CERT_JWK_SERIALIZER_H_
7 7
8 #include "base/strings/string_piece.h" 8 #include "base/strings/string_piece.h"
9 #include "net/base/net_export.h" 9 #include "net/base/net_export.h"
10 10
11 namespace base { 11 namespace base {
12 class DictionaryValue; 12 class DictionaryValue;
13 } 13 }
14 14
15 namespace net { 15 namespace net {
16 16
17 namespace JwkSerializer { 17 namespace JwkSerializer {
18 18
19 // Converts a subject public key info from DER to JWK. 19 // Converts a subject public key info from DER to JWK.
20 // See http://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-13 for 20 // See http://tools.ietf.org/html/draft-ietf-jose-json-web-algorithms-17 for
21 // the output format. 21 // the output format.
22 NET_EXPORT_PRIVATE bool ConvertSpkiFromDerToJwk( 22 NET_EXPORT_PRIVATE bool ConvertSpkiFromDerToJwk(
23 const base::StringPiece& spki_der, 23 const base::StringPiece& spki_der,
24 base::DictionaryValue* public_key_jwk); 24 base::DictionaryValue* public_key_jwk);
25 25
26 } // namespace JwkSerializer 26 } // namespace JwkSerializer
27 27
28 } // namespace net 28 } // namespace net
29 29
30 #endif // NET_CERT_JWK_SERIALIZER_H_ 30 #endif // NET_CERT_JWK_SERIALIZER_H_
OLDNEW
« no previous file with comments | « no previous file | net/cert/jwk_serializer_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698