git » remoteu2f » commit c542585

Regenerate protobufs and embedded data

author Alberto Bertogli
2016-11-08 14:38:24 UTC
committer Alberto Bertogli
2016-11-08 14:38:24 UTC
parent 8fa4169fda7357348c0a3fc20ee7c9581af402a8

Regenerate protobufs and embedded data

grpc v1.0.4 increased the support package version, so this patch
regenerates the protobuf accordingly.

While at it, the embedded data is also updated to include a minor
wording change from a previous patch.

internal/proto/remoteu2f.pb.go +21 -20
remoteu2f-proxy/embedded_data.go +1 -1

diff --git a/internal/proto/remoteu2f.pb.go b/internal/proto/remoteu2f.pb.go
index 86bb792..eca3b5a 100644
--- a/internal/proto/remoteu2f.pb.go
+++ b/internal/proto/remoteu2f.pb.go
@@ -120,7 +120,7 @@ var _ grpc.ClientConn
 
 // This is a compile-time assertion to ensure that this generated file
 // is compatible with the grpc package it is being compiled against.
-const _ = grpc.SupportPackageIsVersion3
+const _ = grpc.SupportPackageIsVersion4
 
 // Client API for RemoteU2F service
 
@@ -249,28 +249,29 @@ var _RemoteU2F_serviceDesc = grpc.ServiceDesc{
 		},
 	},
 	Streams:  []grpc.StreamDesc{},
-	Metadata: fileDescriptor0,
+	Metadata: "remoteu2f.proto",
 }
 
 func init() { proto.RegisterFile("remoteu2f.proto", fileDescriptor0) }
 
 var fileDescriptor0 = []byte{
-	// 271 bytes of a gzipped FileDescriptorProto
-	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0xe2, 0x2f, 0x4a, 0xcd, 0xcd,
-	0x2f, 0x49, 0x2d, 0x35, 0x4a, 0xd3, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0xe2, 0x84, 0x0b, 0x28,
-	0xb1, 0x71, 0xb1, 0x84, 0xe5, 0x67, 0xa6, 0x28, 0xc9, 0x73, 0x31, 0x87, 0x16, 0xe5, 0x08, 0x71,
-	0x73, 0x31, 0x67, 0xa7, 0x56, 0x4a, 0x30, 0x2a, 0x30, 0x6a, 0x70, 0x82, 0x38, 0xa5, 0x45, 0x39,
-	0x12, 0x4c, 0x20, 0x8e, 0x52, 0x33, 0x23, 0x17, 0x7b, 0x40, 0x51, 0x6a, 0x41, 0x62, 0x51, 0xaa,
-	0x10, 0x0f, 0x17, 0x4b, 0x56, 0x71, 0x7e, 0x1e, 0x58, 0x19, 0x0f, 0x48, 0x59, 0x6e, 0x71, 0x3a,
-	0x44, 0x99, 0x90, 0x3a, 0x17, 0x6b, 0x51, 0x49, 0x65, 0x41, 0xaa, 0x04, 0x33, 0x90, 0xcb, 0x67,
-	0x24, 0xa1, 0x87, 0xb0, 0x1b, 0xaa, 0x5b, 0x2f, 0x28, 0x04, 0x28, 0xaf, 0x64, 0xc2, 0xc5, 0x0a,
-	0x66, 0x00, 0xb5, 0xb3, 0x87, 0xfa, 0x79, 0xfb, 0xf9, 0x87, 0xfb, 0x09, 0x30, 0x00, 0x4d, 0xe6,
-	0x08, 0x72, 0x75, 0xf7, 0x0c, 0x0e, 0x71, 0x0d, 0x12, 0x60, 0x14, 0x12, 0xe0, 0xe2, 0x71, 0x0c,
-	0x0d, 0xf1, 0x70, 0xf5, 0x0b, 0xf1, 0x74, 0x76, 0x0c, 0x71, 0x15, 0x60, 0x52, 0x92, 0x00, 0xca,
-	0xa7, 0x16, 0x17, 0xe4, 0xe7, 0x15, 0xa3, 0xb9, 0xc2, 0x68, 0x3e, 0x23, 0x17, 0x67, 0x10, 0xd8,
-	0xae, 0x50, 0x23, 0x37, 0x21, 0x7d, 0x2e, 0x4e, 0xa8, 0x75, 0xfe, 0x05, 0x42, 0x42, 0x98, 0x8e,
-	0x90, 0xe2, 0x43, 0x12, 0x03, 0x79, 0xdc, 0x84, 0x8b, 0xd7, 0x3d, 0xb5, 0xc4, 0xbf, 0x00, 0x6e,
-	0x3a, 0x9a, 0x02, 0x29, 0x61, 0x24, 0x3e, 0x5c, 0x91, 0x36, 0x17, 0x07, 0x50, 0x97, 0x63, 0x41,
-	0x81, 0xa7, 0x8b, 0x10, 0x3f, 0x92, 0x02, 0x50, 0x90, 0xa2, 0x5b, 0x91, 0xc4, 0x06, 0x0e, 0x7c,
-	0x63, 0x40, 0x00, 0x00, 0x00, 0xff, 0xff, 0x2e, 0x91, 0x9f, 0xa2, 0x8f, 0x01, 0x00, 0x00,
+	// 285 bytes of a gzipped FileDescriptorProto
+	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x91, 0x4f, 0x4f, 0x83, 0x40,
+	0x10, 0xc5, 0xdd, 0xd2, 0x3f, 0x30, 0x62, 0x4b, 0xc6, 0x0b, 0xe9, 0xc1, 0x34, 0x9c, 0x6a, 0x4c,
+	0x30, 0xc1, 0x7e, 0x01, 0xa2, 0x88, 0xc4, 0x04, 0xcc, 0x0a, 0x7a, 0xd6, 0xb8, 0x36, 0x2a, 0x74,
+	0x37, 0x0b, 0x1c, 0xf8, 0x20, 0x9e, 0xfd, 0xaa, 0x86, 0x6d, 0x45, 0x52, 0xbd, 0xcd, 0xbc, 0xbc,
+	0xb7, 0xbf, 0x97, 0x59, 0x98, 0x49, 0x56, 0xf0, 0x8a, 0xd5, 0xde, 0xab, 0x2b, 0x24, 0xaf, 0x38,
+	0x1a, 0x9d, 0xe0, 0x8c, 0x61, 0xf8, 0xc0, 0xdf, 0x5e, 0x9c, 0x53, 0xd0, 0x32, 0x99, 0xa3, 0x05,
+	0xda, 0x07, 0x6b, 0x6c, 0xb2, 0x20, 0x4b, 0x83, 0xb6, 0x63, 0xab, 0xd4, 0x32, 0xb7, 0x07, 0x5b,
+	0xa5, 0x96, 0xb9, 0xf3, 0x49, 0x60, 0x72, 0x27, 0x99, 0x78, 0x92, 0x0c, 0x11, 0x86, 0xef, 0x25,
+	0xdf, 0xa8, 0x80, 0x49, 0xd5, 0xdc, 0x26, 0x8a, 0x72, 0xfd, 0x93, 0x28, 0xca, 0x35, 0xba, 0x30,
+	0x92, 0x55, 0x23, 0x98, 0xad, 0x2d, 0xc8, 0x72, 0xea, 0xd9, 0xee, 0x6f, 0xa1, 0xdd, 0x43, 0x2e,
+	0x4d, 0x1b, 0xc1, 0xe8, 0xd6, 0xe6, 0xac, 0x60, 0xa4, 0x76, 0x3c, 0x84, 0x49, 0x16, 0xdf, 0xc6,
+	0xc9, 0x63, 0x6c, 0x1d, 0xa0, 0x09, 0x3a, 0x0d, 0xc2, 0xe8, 0x3e, 0x0d, 0xa8, 0x45, 0xd0, 0x02,
+	0xd3, 0xcf, 0xd2, 0x9b, 0x20, 0x4e, 0xa3, 0x4b, 0x3f, 0x0d, 0xac, 0x81, 0x73, 0x02, 0x3a, 0x65,
+	0xa5, 0xe0, 0x9b, 0xf2, 0xdf, 0x5e, 0xde, 0x17, 0x01, 0x83, 0x2a, 0x70, 0xe6, 0x5d, 0xe3, 0x39,
+	0x18, 0x3b, 0x76, 0x22, 0x10, 0xff, 0x36, 0x9a, 0x4f, 0x7b, 0x5a, 0x7b, 0x9a, 0x15, 0x1c, 0x85,
+	0xac, 0x4a, 0x44, 0xc7, 0xd8, 0x33, 0xcc, 0x8f, 0x7b, 0x7b, 0x67, 0x3a, 0x03, 0x3d, 0x64, 0x95,
+	0x2f, 0x44, 0x74, 0x85, 0xb3, 0x9e, 0xa1, 0x3d, 0xfa, 0x3e, 0xe2, 0x79, 0xac, 0xbe, 0xe7, 0xe2,
+	0x3b, 0x00, 0x00, 0xff, 0xff, 0x8f, 0xfa, 0x7d, 0x34, 0xb1, 0x01, 0x00, 0x00,
 }
diff --git a/remoteu2f-proxy/embedded_data.go b/remoteu2f-proxy/embedded_data.go
index dd62901..75486c8 100644
--- a/remoteu2f-proxy/embedded_data.go
+++ b/remoteu2f-proxy/embedded_data.go
@@ -104,7 +104,7 @@ function handleKeyResponse(resp) {
     if (resp.errorCode != undefined && resp.errorCode != u2f.ErrorCodes.OK) {
         codeToText = {
             0: "OK",
-            1: "General error (hardware issues?)",
+            1: "General error (is the security key plugged in?)",
             2: "Bad request (please report)",
             3: "Unsupported configuration (please report)",
             4: "Device ineligible, did you forget to register it?",