| Index: net/cert/jwk_serializer_unittest.cc
|
| diff --git a/net/cert/jwk_serializer_unittest.cc b/net/cert/jwk_serializer_unittest.cc
|
| index 8059e73a3a6915916dd55f0a8b7d26be6138d2a6..80c24217e0114cb19af7e90b9f5d29c34d9537ad 100644
|
| --- a/net/cert/jwk_serializer_unittest.cc
|
| +++ b/net/cert/jwk_serializer_unittest.cc
|
| @@ -10,6 +10,7 @@
|
|
|
| namespace net {
|
|
|
| +#if !defined(USE_OPENSSL)
|
| // This is the ASN.1 prefix for a P-256 public key. Specifically it's:
|
| // SEQUENCE
|
| // SEQUENCE
|
| @@ -27,6 +28,7 @@ static const unsigned char kP256SpkiPrefix[] = {
|
| 0x42, 0x00, 0x04
|
| };
|
| static const unsigned int kEcCoordinateSize = 32U;
|
| +#endif
|
|
|
| // This is a valid P-256 public key.
|
| static const unsigned char kSpkiEc[] = {
|
| @@ -44,6 +46,7 @@ static const unsigned char kSpkiEc[] = {
|
| 0x05, 0xd3, 0xd2, 0xca, 0xdf, 0x44, 0x2f, 0xf4
|
| };
|
|
|
| +#if !defined(USE_OPENSSL)
|
| // This is a P-256 public key with 0 X and Y values.
|
| static const unsigned char kSpkiEcWithZeroXY[] = {
|
| 0x30, 0x59, 0x30, 0x13, 0x06, 0x07, 0x2a, 0x86,
|
| @@ -60,8 +63,6 @@ static const unsigned char kSpkiEcWithZeroXY[] = {
|
| 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
|
| };
|
|
|
| -#if !defined(USE_OPENSSL)
|
| -
|
| TEST(JwkSerializerNSSTest, ConvertSpkiFromDerToJwkEc) {
|
| base::StringPiece spki;
|
| base::DictionaryValue public_key_jwk;
|
|
|