github.com/outbrain/consul@v1.4.5/agent/connect/ca/plugin/provider.pb.go (about) 1 // Code generated by protoc-gen-gogo. DO NOT EDIT. 2 // source: agent/connect/ca/plugin/provider.proto 3 4 package plugin // import "github.com/hashicorp/consul/agent/connect/ca/plugin" 5 6 import proto "github.com/golang/protobuf/proto" 7 import fmt "fmt" 8 import math "math" 9 10 import ( 11 context "golang.org/x/net/context" 12 grpc "google.golang.org/grpc" 13 ) 14 15 import io "io" 16 17 // Reference imports to suppress errors if they are not otherwise used. 18 var _ = proto.Marshal 19 var _ = fmt.Errorf 20 var _ = math.Inf 21 22 // This is a compile-time assertion to ensure that this generated file 23 // is compatible with the proto package it is being compiled against. 24 // A compilation error at this line likely means your copy of the 25 // proto package needs to be updated. 26 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package 27 28 type ConfigureRequest struct { 29 ClusterId string `protobuf:"bytes,1,opt,name=cluster_id,json=clusterId,proto3" json:"cluster_id,omitempty"` 30 IsRoot bool `protobuf:"varint,2,opt,name=is_root,json=isRoot,proto3" json:"is_root,omitempty"` 31 Config []byte `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` 32 XXX_NoUnkeyedLiteral struct{} `json:"-"` 33 XXX_unrecognized []byte `json:"-"` 34 XXX_sizecache int32 `json:"-"` 35 } 36 37 func (m *ConfigureRequest) Reset() { *m = ConfigureRequest{} } 38 func (m *ConfigureRequest) String() string { return proto.CompactTextString(m) } 39 func (*ConfigureRequest) ProtoMessage() {} 40 func (*ConfigureRequest) Descriptor() ([]byte, []int) { 41 return fileDescriptor_provider_8ff2d2670790989c, []int{0} 42 } 43 func (m *ConfigureRequest) XXX_Unmarshal(b []byte) error { 44 return m.Unmarshal(b) 45 } 46 func (m *ConfigureRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 47 if deterministic { 48 return xxx_messageInfo_ConfigureRequest.Marshal(b, m, deterministic) 49 } else { 50 b = b[:cap(b)] 51 n, err := m.MarshalTo(b) 52 if err != nil { 53 return nil, err 54 } 55 return b[:n], nil 56 } 57 } 58 func (dst *ConfigureRequest) XXX_Merge(src proto.Message) { 59 xxx_messageInfo_ConfigureRequest.Merge(dst, src) 60 } 61 func (m *ConfigureRequest) XXX_Size() int { 62 return m.Size() 63 } 64 func (m *ConfigureRequest) XXX_DiscardUnknown() { 65 xxx_messageInfo_ConfigureRequest.DiscardUnknown(m) 66 } 67 68 var xxx_messageInfo_ConfigureRequest proto.InternalMessageInfo 69 70 func (m *ConfigureRequest) GetClusterId() string { 71 if m != nil { 72 return m.ClusterId 73 } 74 return "" 75 } 76 77 func (m *ConfigureRequest) GetIsRoot() bool { 78 if m != nil { 79 return m.IsRoot 80 } 81 return false 82 } 83 84 func (m *ConfigureRequest) GetConfig() []byte { 85 if m != nil { 86 return m.Config 87 } 88 return nil 89 } 90 91 type SetIntermediateRequest struct { 92 IntermediatePem string `protobuf:"bytes,1,opt,name=intermediate_pem,json=intermediatePem,proto3" json:"intermediate_pem,omitempty"` 93 RootPem string `protobuf:"bytes,2,opt,name=root_pem,json=rootPem,proto3" json:"root_pem,omitempty"` 94 XXX_NoUnkeyedLiteral struct{} `json:"-"` 95 XXX_unrecognized []byte `json:"-"` 96 XXX_sizecache int32 `json:"-"` 97 } 98 99 func (m *SetIntermediateRequest) Reset() { *m = SetIntermediateRequest{} } 100 func (m *SetIntermediateRequest) String() string { return proto.CompactTextString(m) } 101 func (*SetIntermediateRequest) ProtoMessage() {} 102 func (*SetIntermediateRequest) Descriptor() ([]byte, []int) { 103 return fileDescriptor_provider_8ff2d2670790989c, []int{1} 104 } 105 func (m *SetIntermediateRequest) XXX_Unmarshal(b []byte) error { 106 return m.Unmarshal(b) 107 } 108 func (m *SetIntermediateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 109 if deterministic { 110 return xxx_messageInfo_SetIntermediateRequest.Marshal(b, m, deterministic) 111 } else { 112 b = b[:cap(b)] 113 n, err := m.MarshalTo(b) 114 if err != nil { 115 return nil, err 116 } 117 return b[:n], nil 118 } 119 } 120 func (dst *SetIntermediateRequest) XXX_Merge(src proto.Message) { 121 xxx_messageInfo_SetIntermediateRequest.Merge(dst, src) 122 } 123 func (m *SetIntermediateRequest) XXX_Size() int { 124 return m.Size() 125 } 126 func (m *SetIntermediateRequest) XXX_DiscardUnknown() { 127 xxx_messageInfo_SetIntermediateRequest.DiscardUnknown(m) 128 } 129 130 var xxx_messageInfo_SetIntermediateRequest proto.InternalMessageInfo 131 132 func (m *SetIntermediateRequest) GetIntermediatePem() string { 133 if m != nil { 134 return m.IntermediatePem 135 } 136 return "" 137 } 138 139 func (m *SetIntermediateRequest) GetRootPem() string { 140 if m != nil { 141 return m.RootPem 142 } 143 return "" 144 } 145 146 type SignRequest struct { 147 Csr []byte `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"` 148 XXX_NoUnkeyedLiteral struct{} `json:"-"` 149 XXX_unrecognized []byte `json:"-"` 150 XXX_sizecache int32 `json:"-"` 151 } 152 153 func (m *SignRequest) Reset() { *m = SignRequest{} } 154 func (m *SignRequest) String() string { return proto.CompactTextString(m) } 155 func (*SignRequest) ProtoMessage() {} 156 func (*SignRequest) Descriptor() ([]byte, []int) { 157 return fileDescriptor_provider_8ff2d2670790989c, []int{2} 158 } 159 func (m *SignRequest) XXX_Unmarshal(b []byte) error { 160 return m.Unmarshal(b) 161 } 162 func (m *SignRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 163 if deterministic { 164 return xxx_messageInfo_SignRequest.Marshal(b, m, deterministic) 165 } else { 166 b = b[:cap(b)] 167 n, err := m.MarshalTo(b) 168 if err != nil { 169 return nil, err 170 } 171 return b[:n], nil 172 } 173 } 174 func (dst *SignRequest) XXX_Merge(src proto.Message) { 175 xxx_messageInfo_SignRequest.Merge(dst, src) 176 } 177 func (m *SignRequest) XXX_Size() int { 178 return m.Size() 179 } 180 func (m *SignRequest) XXX_DiscardUnknown() { 181 xxx_messageInfo_SignRequest.DiscardUnknown(m) 182 } 183 184 var xxx_messageInfo_SignRequest proto.InternalMessageInfo 185 186 func (m *SignRequest) GetCsr() []byte { 187 if m != nil { 188 return m.Csr 189 } 190 return nil 191 } 192 193 type SignIntermediateRequest struct { 194 Csr []byte `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"` 195 XXX_NoUnkeyedLiteral struct{} `json:"-"` 196 XXX_unrecognized []byte `json:"-"` 197 XXX_sizecache int32 `json:"-"` 198 } 199 200 func (m *SignIntermediateRequest) Reset() { *m = SignIntermediateRequest{} } 201 func (m *SignIntermediateRequest) String() string { return proto.CompactTextString(m) } 202 func (*SignIntermediateRequest) ProtoMessage() {} 203 func (*SignIntermediateRequest) Descriptor() ([]byte, []int) { 204 return fileDescriptor_provider_8ff2d2670790989c, []int{3} 205 } 206 func (m *SignIntermediateRequest) XXX_Unmarshal(b []byte) error { 207 return m.Unmarshal(b) 208 } 209 func (m *SignIntermediateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 210 if deterministic { 211 return xxx_messageInfo_SignIntermediateRequest.Marshal(b, m, deterministic) 212 } else { 213 b = b[:cap(b)] 214 n, err := m.MarshalTo(b) 215 if err != nil { 216 return nil, err 217 } 218 return b[:n], nil 219 } 220 } 221 func (dst *SignIntermediateRequest) XXX_Merge(src proto.Message) { 222 xxx_messageInfo_SignIntermediateRequest.Merge(dst, src) 223 } 224 func (m *SignIntermediateRequest) XXX_Size() int { 225 return m.Size() 226 } 227 func (m *SignIntermediateRequest) XXX_DiscardUnknown() { 228 xxx_messageInfo_SignIntermediateRequest.DiscardUnknown(m) 229 } 230 231 var xxx_messageInfo_SignIntermediateRequest proto.InternalMessageInfo 232 233 func (m *SignIntermediateRequest) GetCsr() []byte { 234 if m != nil { 235 return m.Csr 236 } 237 return nil 238 } 239 240 type CrossSignCARequest struct { 241 Crt []byte `protobuf:"bytes,1,opt,name=crt,proto3" json:"crt,omitempty"` 242 XXX_NoUnkeyedLiteral struct{} `json:"-"` 243 XXX_unrecognized []byte `json:"-"` 244 XXX_sizecache int32 `json:"-"` 245 } 246 247 func (m *CrossSignCARequest) Reset() { *m = CrossSignCARequest{} } 248 func (m *CrossSignCARequest) String() string { return proto.CompactTextString(m) } 249 func (*CrossSignCARequest) ProtoMessage() {} 250 func (*CrossSignCARequest) Descriptor() ([]byte, []int) { 251 return fileDescriptor_provider_8ff2d2670790989c, []int{4} 252 } 253 func (m *CrossSignCARequest) XXX_Unmarshal(b []byte) error { 254 return m.Unmarshal(b) 255 } 256 func (m *CrossSignCARequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 257 if deterministic { 258 return xxx_messageInfo_CrossSignCARequest.Marshal(b, m, deterministic) 259 } else { 260 b = b[:cap(b)] 261 n, err := m.MarshalTo(b) 262 if err != nil { 263 return nil, err 264 } 265 return b[:n], nil 266 } 267 } 268 func (dst *CrossSignCARequest) XXX_Merge(src proto.Message) { 269 xxx_messageInfo_CrossSignCARequest.Merge(dst, src) 270 } 271 func (m *CrossSignCARequest) XXX_Size() int { 272 return m.Size() 273 } 274 func (m *CrossSignCARequest) XXX_DiscardUnknown() { 275 xxx_messageInfo_CrossSignCARequest.DiscardUnknown(m) 276 } 277 278 var xxx_messageInfo_CrossSignCARequest proto.InternalMessageInfo 279 280 func (m *CrossSignCARequest) GetCrt() []byte { 281 if m != nil { 282 return m.Crt 283 } 284 return nil 285 } 286 287 type ActiveRootResponse struct { 288 CrtPem string `protobuf:"bytes,1,opt,name=crt_pem,json=crtPem,proto3" json:"crt_pem,omitempty"` 289 XXX_NoUnkeyedLiteral struct{} `json:"-"` 290 XXX_unrecognized []byte `json:"-"` 291 XXX_sizecache int32 `json:"-"` 292 } 293 294 func (m *ActiveRootResponse) Reset() { *m = ActiveRootResponse{} } 295 func (m *ActiveRootResponse) String() string { return proto.CompactTextString(m) } 296 func (*ActiveRootResponse) ProtoMessage() {} 297 func (*ActiveRootResponse) Descriptor() ([]byte, []int) { 298 return fileDescriptor_provider_8ff2d2670790989c, []int{5} 299 } 300 func (m *ActiveRootResponse) XXX_Unmarshal(b []byte) error { 301 return m.Unmarshal(b) 302 } 303 func (m *ActiveRootResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 304 if deterministic { 305 return xxx_messageInfo_ActiveRootResponse.Marshal(b, m, deterministic) 306 } else { 307 b = b[:cap(b)] 308 n, err := m.MarshalTo(b) 309 if err != nil { 310 return nil, err 311 } 312 return b[:n], nil 313 } 314 } 315 func (dst *ActiveRootResponse) XXX_Merge(src proto.Message) { 316 xxx_messageInfo_ActiveRootResponse.Merge(dst, src) 317 } 318 func (m *ActiveRootResponse) XXX_Size() int { 319 return m.Size() 320 } 321 func (m *ActiveRootResponse) XXX_DiscardUnknown() { 322 xxx_messageInfo_ActiveRootResponse.DiscardUnknown(m) 323 } 324 325 var xxx_messageInfo_ActiveRootResponse proto.InternalMessageInfo 326 327 func (m *ActiveRootResponse) GetCrtPem() string { 328 if m != nil { 329 return m.CrtPem 330 } 331 return "" 332 } 333 334 type GenerateIntermediateCSRResponse struct { 335 CsrPem string `protobuf:"bytes,1,opt,name=csr_pem,json=csrPem,proto3" json:"csr_pem,omitempty"` 336 XXX_NoUnkeyedLiteral struct{} `json:"-"` 337 XXX_unrecognized []byte `json:"-"` 338 XXX_sizecache int32 `json:"-"` 339 } 340 341 func (m *GenerateIntermediateCSRResponse) Reset() { *m = GenerateIntermediateCSRResponse{} } 342 func (m *GenerateIntermediateCSRResponse) String() string { return proto.CompactTextString(m) } 343 func (*GenerateIntermediateCSRResponse) ProtoMessage() {} 344 func (*GenerateIntermediateCSRResponse) Descriptor() ([]byte, []int) { 345 return fileDescriptor_provider_8ff2d2670790989c, []int{6} 346 } 347 func (m *GenerateIntermediateCSRResponse) XXX_Unmarshal(b []byte) error { 348 return m.Unmarshal(b) 349 } 350 func (m *GenerateIntermediateCSRResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 351 if deterministic { 352 return xxx_messageInfo_GenerateIntermediateCSRResponse.Marshal(b, m, deterministic) 353 } else { 354 b = b[:cap(b)] 355 n, err := m.MarshalTo(b) 356 if err != nil { 357 return nil, err 358 } 359 return b[:n], nil 360 } 361 } 362 func (dst *GenerateIntermediateCSRResponse) XXX_Merge(src proto.Message) { 363 xxx_messageInfo_GenerateIntermediateCSRResponse.Merge(dst, src) 364 } 365 func (m *GenerateIntermediateCSRResponse) XXX_Size() int { 366 return m.Size() 367 } 368 func (m *GenerateIntermediateCSRResponse) XXX_DiscardUnknown() { 369 xxx_messageInfo_GenerateIntermediateCSRResponse.DiscardUnknown(m) 370 } 371 372 var xxx_messageInfo_GenerateIntermediateCSRResponse proto.InternalMessageInfo 373 374 func (m *GenerateIntermediateCSRResponse) GetCsrPem() string { 375 if m != nil { 376 return m.CsrPem 377 } 378 return "" 379 } 380 381 type ActiveIntermediateResponse struct { 382 CrtPem string `protobuf:"bytes,1,opt,name=crt_pem,json=crtPem,proto3" json:"crt_pem,omitempty"` 383 XXX_NoUnkeyedLiteral struct{} `json:"-"` 384 XXX_unrecognized []byte `json:"-"` 385 XXX_sizecache int32 `json:"-"` 386 } 387 388 func (m *ActiveIntermediateResponse) Reset() { *m = ActiveIntermediateResponse{} } 389 func (m *ActiveIntermediateResponse) String() string { return proto.CompactTextString(m) } 390 func (*ActiveIntermediateResponse) ProtoMessage() {} 391 func (*ActiveIntermediateResponse) Descriptor() ([]byte, []int) { 392 return fileDescriptor_provider_8ff2d2670790989c, []int{7} 393 } 394 func (m *ActiveIntermediateResponse) XXX_Unmarshal(b []byte) error { 395 return m.Unmarshal(b) 396 } 397 func (m *ActiveIntermediateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 398 if deterministic { 399 return xxx_messageInfo_ActiveIntermediateResponse.Marshal(b, m, deterministic) 400 } else { 401 b = b[:cap(b)] 402 n, err := m.MarshalTo(b) 403 if err != nil { 404 return nil, err 405 } 406 return b[:n], nil 407 } 408 } 409 func (dst *ActiveIntermediateResponse) XXX_Merge(src proto.Message) { 410 xxx_messageInfo_ActiveIntermediateResponse.Merge(dst, src) 411 } 412 func (m *ActiveIntermediateResponse) XXX_Size() int { 413 return m.Size() 414 } 415 func (m *ActiveIntermediateResponse) XXX_DiscardUnknown() { 416 xxx_messageInfo_ActiveIntermediateResponse.DiscardUnknown(m) 417 } 418 419 var xxx_messageInfo_ActiveIntermediateResponse proto.InternalMessageInfo 420 421 func (m *ActiveIntermediateResponse) GetCrtPem() string { 422 if m != nil { 423 return m.CrtPem 424 } 425 return "" 426 } 427 428 type GenerateIntermediateResponse struct { 429 CrtPem string `protobuf:"bytes,1,opt,name=crt_pem,json=crtPem,proto3" json:"crt_pem,omitempty"` 430 XXX_NoUnkeyedLiteral struct{} `json:"-"` 431 XXX_unrecognized []byte `json:"-"` 432 XXX_sizecache int32 `json:"-"` 433 } 434 435 func (m *GenerateIntermediateResponse) Reset() { *m = GenerateIntermediateResponse{} } 436 func (m *GenerateIntermediateResponse) String() string { return proto.CompactTextString(m) } 437 func (*GenerateIntermediateResponse) ProtoMessage() {} 438 func (*GenerateIntermediateResponse) Descriptor() ([]byte, []int) { 439 return fileDescriptor_provider_8ff2d2670790989c, []int{8} 440 } 441 func (m *GenerateIntermediateResponse) XXX_Unmarshal(b []byte) error { 442 return m.Unmarshal(b) 443 } 444 func (m *GenerateIntermediateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 445 if deterministic { 446 return xxx_messageInfo_GenerateIntermediateResponse.Marshal(b, m, deterministic) 447 } else { 448 b = b[:cap(b)] 449 n, err := m.MarshalTo(b) 450 if err != nil { 451 return nil, err 452 } 453 return b[:n], nil 454 } 455 } 456 func (dst *GenerateIntermediateResponse) XXX_Merge(src proto.Message) { 457 xxx_messageInfo_GenerateIntermediateResponse.Merge(dst, src) 458 } 459 func (m *GenerateIntermediateResponse) XXX_Size() int { 460 return m.Size() 461 } 462 func (m *GenerateIntermediateResponse) XXX_DiscardUnknown() { 463 xxx_messageInfo_GenerateIntermediateResponse.DiscardUnknown(m) 464 } 465 466 var xxx_messageInfo_GenerateIntermediateResponse proto.InternalMessageInfo 467 468 func (m *GenerateIntermediateResponse) GetCrtPem() string { 469 if m != nil { 470 return m.CrtPem 471 } 472 return "" 473 } 474 475 type SignResponse struct { 476 CrtPem string `protobuf:"bytes,1,opt,name=crt_pem,json=crtPem,proto3" json:"crt_pem,omitempty"` 477 XXX_NoUnkeyedLiteral struct{} `json:"-"` 478 XXX_unrecognized []byte `json:"-"` 479 XXX_sizecache int32 `json:"-"` 480 } 481 482 func (m *SignResponse) Reset() { *m = SignResponse{} } 483 func (m *SignResponse) String() string { return proto.CompactTextString(m) } 484 func (*SignResponse) ProtoMessage() {} 485 func (*SignResponse) Descriptor() ([]byte, []int) { 486 return fileDescriptor_provider_8ff2d2670790989c, []int{9} 487 } 488 func (m *SignResponse) XXX_Unmarshal(b []byte) error { 489 return m.Unmarshal(b) 490 } 491 func (m *SignResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 492 if deterministic { 493 return xxx_messageInfo_SignResponse.Marshal(b, m, deterministic) 494 } else { 495 b = b[:cap(b)] 496 n, err := m.MarshalTo(b) 497 if err != nil { 498 return nil, err 499 } 500 return b[:n], nil 501 } 502 } 503 func (dst *SignResponse) XXX_Merge(src proto.Message) { 504 xxx_messageInfo_SignResponse.Merge(dst, src) 505 } 506 func (m *SignResponse) XXX_Size() int { 507 return m.Size() 508 } 509 func (m *SignResponse) XXX_DiscardUnknown() { 510 xxx_messageInfo_SignResponse.DiscardUnknown(m) 511 } 512 513 var xxx_messageInfo_SignResponse proto.InternalMessageInfo 514 515 func (m *SignResponse) GetCrtPem() string { 516 if m != nil { 517 return m.CrtPem 518 } 519 return "" 520 } 521 522 type SignIntermediateResponse struct { 523 CrtPem string `protobuf:"bytes,1,opt,name=crt_pem,json=crtPem,proto3" json:"crt_pem,omitempty"` 524 XXX_NoUnkeyedLiteral struct{} `json:"-"` 525 XXX_unrecognized []byte `json:"-"` 526 XXX_sizecache int32 `json:"-"` 527 } 528 529 func (m *SignIntermediateResponse) Reset() { *m = SignIntermediateResponse{} } 530 func (m *SignIntermediateResponse) String() string { return proto.CompactTextString(m) } 531 func (*SignIntermediateResponse) ProtoMessage() {} 532 func (*SignIntermediateResponse) Descriptor() ([]byte, []int) { 533 return fileDescriptor_provider_8ff2d2670790989c, []int{10} 534 } 535 func (m *SignIntermediateResponse) XXX_Unmarshal(b []byte) error { 536 return m.Unmarshal(b) 537 } 538 func (m *SignIntermediateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 539 if deterministic { 540 return xxx_messageInfo_SignIntermediateResponse.Marshal(b, m, deterministic) 541 } else { 542 b = b[:cap(b)] 543 n, err := m.MarshalTo(b) 544 if err != nil { 545 return nil, err 546 } 547 return b[:n], nil 548 } 549 } 550 func (dst *SignIntermediateResponse) XXX_Merge(src proto.Message) { 551 xxx_messageInfo_SignIntermediateResponse.Merge(dst, src) 552 } 553 func (m *SignIntermediateResponse) XXX_Size() int { 554 return m.Size() 555 } 556 func (m *SignIntermediateResponse) XXX_DiscardUnknown() { 557 xxx_messageInfo_SignIntermediateResponse.DiscardUnknown(m) 558 } 559 560 var xxx_messageInfo_SignIntermediateResponse proto.InternalMessageInfo 561 562 func (m *SignIntermediateResponse) GetCrtPem() string { 563 if m != nil { 564 return m.CrtPem 565 } 566 return "" 567 } 568 569 type CrossSignCAResponse struct { 570 CrtPem string `protobuf:"bytes,1,opt,name=crt_pem,json=crtPem,proto3" json:"crt_pem,omitempty"` 571 XXX_NoUnkeyedLiteral struct{} `json:"-"` 572 XXX_unrecognized []byte `json:"-"` 573 XXX_sizecache int32 `json:"-"` 574 } 575 576 func (m *CrossSignCAResponse) Reset() { *m = CrossSignCAResponse{} } 577 func (m *CrossSignCAResponse) String() string { return proto.CompactTextString(m) } 578 func (*CrossSignCAResponse) ProtoMessage() {} 579 func (*CrossSignCAResponse) Descriptor() ([]byte, []int) { 580 return fileDescriptor_provider_8ff2d2670790989c, []int{11} 581 } 582 func (m *CrossSignCAResponse) XXX_Unmarshal(b []byte) error { 583 return m.Unmarshal(b) 584 } 585 func (m *CrossSignCAResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 586 if deterministic { 587 return xxx_messageInfo_CrossSignCAResponse.Marshal(b, m, deterministic) 588 } else { 589 b = b[:cap(b)] 590 n, err := m.MarshalTo(b) 591 if err != nil { 592 return nil, err 593 } 594 return b[:n], nil 595 } 596 } 597 func (dst *CrossSignCAResponse) XXX_Merge(src proto.Message) { 598 xxx_messageInfo_CrossSignCAResponse.Merge(dst, src) 599 } 600 func (m *CrossSignCAResponse) XXX_Size() int { 601 return m.Size() 602 } 603 func (m *CrossSignCAResponse) XXX_DiscardUnknown() { 604 xxx_messageInfo_CrossSignCAResponse.DiscardUnknown(m) 605 } 606 607 var xxx_messageInfo_CrossSignCAResponse proto.InternalMessageInfo 608 609 func (m *CrossSignCAResponse) GetCrtPem() string { 610 if m != nil { 611 return m.CrtPem 612 } 613 return "" 614 } 615 616 // Protobufs doesn't allow no req/resp so in the cases where there are 617 // no arguments we use the Empty message. 618 type Empty struct { 619 XXX_NoUnkeyedLiteral struct{} `json:"-"` 620 XXX_unrecognized []byte `json:"-"` 621 XXX_sizecache int32 `json:"-"` 622 } 623 624 func (m *Empty) Reset() { *m = Empty{} } 625 func (m *Empty) String() string { return proto.CompactTextString(m) } 626 func (*Empty) ProtoMessage() {} 627 func (*Empty) Descriptor() ([]byte, []int) { 628 return fileDescriptor_provider_8ff2d2670790989c, []int{12} 629 } 630 func (m *Empty) XXX_Unmarshal(b []byte) error { 631 return m.Unmarshal(b) 632 } 633 func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 634 if deterministic { 635 return xxx_messageInfo_Empty.Marshal(b, m, deterministic) 636 } else { 637 b = b[:cap(b)] 638 n, err := m.MarshalTo(b) 639 if err != nil { 640 return nil, err 641 } 642 return b[:n], nil 643 } 644 } 645 func (dst *Empty) XXX_Merge(src proto.Message) { 646 xxx_messageInfo_Empty.Merge(dst, src) 647 } 648 func (m *Empty) XXX_Size() int { 649 return m.Size() 650 } 651 func (m *Empty) XXX_DiscardUnknown() { 652 xxx_messageInfo_Empty.DiscardUnknown(m) 653 } 654 655 var xxx_messageInfo_Empty proto.InternalMessageInfo 656 657 func init() { 658 proto.RegisterType((*ConfigureRequest)(nil), "plugin.ConfigureRequest") 659 proto.RegisterType((*SetIntermediateRequest)(nil), "plugin.SetIntermediateRequest") 660 proto.RegisterType((*SignRequest)(nil), "plugin.SignRequest") 661 proto.RegisterType((*SignIntermediateRequest)(nil), "plugin.SignIntermediateRequest") 662 proto.RegisterType((*CrossSignCARequest)(nil), "plugin.CrossSignCARequest") 663 proto.RegisterType((*ActiveRootResponse)(nil), "plugin.ActiveRootResponse") 664 proto.RegisterType((*GenerateIntermediateCSRResponse)(nil), "plugin.GenerateIntermediateCSRResponse") 665 proto.RegisterType((*ActiveIntermediateResponse)(nil), "plugin.ActiveIntermediateResponse") 666 proto.RegisterType((*GenerateIntermediateResponse)(nil), "plugin.GenerateIntermediateResponse") 667 proto.RegisterType((*SignResponse)(nil), "plugin.SignResponse") 668 proto.RegisterType((*SignIntermediateResponse)(nil), "plugin.SignIntermediateResponse") 669 proto.RegisterType((*CrossSignCAResponse)(nil), "plugin.CrossSignCAResponse") 670 proto.RegisterType((*Empty)(nil), "plugin.Empty") 671 } 672 673 // Reference imports to suppress errors if they are not otherwise used. 674 var _ context.Context 675 var _ grpc.ClientConn 676 677 // This is a compile-time assertion to ensure that this generated file 678 // is compatible with the grpc package it is being compiled against. 679 const _ = grpc.SupportPackageIsVersion4 680 681 // CAClient is the client API for CA service. 682 // 683 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 684 type CAClient interface { 685 Configure(ctx context.Context, in *ConfigureRequest, opts ...grpc.CallOption) (*Empty, error) 686 GenerateRoot(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) 687 ActiveRoot(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ActiveRootResponse, error) 688 GenerateIntermediateCSR(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GenerateIntermediateCSRResponse, error) 689 SetIntermediate(ctx context.Context, in *SetIntermediateRequest, opts ...grpc.CallOption) (*Empty, error) 690 ActiveIntermediate(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ActiveIntermediateResponse, error) 691 GenerateIntermediate(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GenerateIntermediateResponse, error) 692 Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error) 693 SignIntermediate(ctx context.Context, in *SignIntermediateRequest, opts ...grpc.CallOption) (*SignIntermediateResponse, error) 694 CrossSignCA(ctx context.Context, in *CrossSignCARequest, opts ...grpc.CallOption) (*CrossSignCAResponse, error) 695 Cleanup(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) 696 } 697 698 type cAClient struct { 699 cc *grpc.ClientConn 700 } 701 702 func NewCAClient(cc *grpc.ClientConn) CAClient { 703 return &cAClient{cc} 704 } 705 706 func (c *cAClient) Configure(ctx context.Context, in *ConfigureRequest, opts ...grpc.CallOption) (*Empty, error) { 707 out := new(Empty) 708 err := c.cc.Invoke(ctx, "/plugin.CA/Configure", in, out, opts...) 709 if err != nil { 710 return nil, err 711 } 712 return out, nil 713 } 714 715 func (c *cAClient) GenerateRoot(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) { 716 out := new(Empty) 717 err := c.cc.Invoke(ctx, "/plugin.CA/GenerateRoot", in, out, opts...) 718 if err != nil { 719 return nil, err 720 } 721 return out, nil 722 } 723 724 func (c *cAClient) ActiveRoot(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ActiveRootResponse, error) { 725 out := new(ActiveRootResponse) 726 err := c.cc.Invoke(ctx, "/plugin.CA/ActiveRoot", in, out, opts...) 727 if err != nil { 728 return nil, err 729 } 730 return out, nil 731 } 732 733 func (c *cAClient) GenerateIntermediateCSR(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GenerateIntermediateCSRResponse, error) { 734 out := new(GenerateIntermediateCSRResponse) 735 err := c.cc.Invoke(ctx, "/plugin.CA/GenerateIntermediateCSR", in, out, opts...) 736 if err != nil { 737 return nil, err 738 } 739 return out, nil 740 } 741 742 func (c *cAClient) SetIntermediate(ctx context.Context, in *SetIntermediateRequest, opts ...grpc.CallOption) (*Empty, error) { 743 out := new(Empty) 744 err := c.cc.Invoke(ctx, "/plugin.CA/SetIntermediate", in, out, opts...) 745 if err != nil { 746 return nil, err 747 } 748 return out, nil 749 } 750 751 func (c *cAClient) ActiveIntermediate(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*ActiveIntermediateResponse, error) { 752 out := new(ActiveIntermediateResponse) 753 err := c.cc.Invoke(ctx, "/plugin.CA/ActiveIntermediate", in, out, opts...) 754 if err != nil { 755 return nil, err 756 } 757 return out, nil 758 } 759 760 func (c *cAClient) GenerateIntermediate(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*GenerateIntermediateResponse, error) { 761 out := new(GenerateIntermediateResponse) 762 err := c.cc.Invoke(ctx, "/plugin.CA/GenerateIntermediate", in, out, opts...) 763 if err != nil { 764 return nil, err 765 } 766 return out, nil 767 } 768 769 func (c *cAClient) Sign(ctx context.Context, in *SignRequest, opts ...grpc.CallOption) (*SignResponse, error) { 770 out := new(SignResponse) 771 err := c.cc.Invoke(ctx, "/plugin.CA/Sign", in, out, opts...) 772 if err != nil { 773 return nil, err 774 } 775 return out, nil 776 } 777 778 func (c *cAClient) SignIntermediate(ctx context.Context, in *SignIntermediateRequest, opts ...grpc.CallOption) (*SignIntermediateResponse, error) { 779 out := new(SignIntermediateResponse) 780 err := c.cc.Invoke(ctx, "/plugin.CA/SignIntermediate", in, out, opts...) 781 if err != nil { 782 return nil, err 783 } 784 return out, nil 785 } 786 787 func (c *cAClient) CrossSignCA(ctx context.Context, in *CrossSignCARequest, opts ...grpc.CallOption) (*CrossSignCAResponse, error) { 788 out := new(CrossSignCAResponse) 789 err := c.cc.Invoke(ctx, "/plugin.CA/CrossSignCA", in, out, opts...) 790 if err != nil { 791 return nil, err 792 } 793 return out, nil 794 } 795 796 func (c *cAClient) Cleanup(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Empty, error) { 797 out := new(Empty) 798 err := c.cc.Invoke(ctx, "/plugin.CA/Cleanup", in, out, opts...) 799 if err != nil { 800 return nil, err 801 } 802 return out, nil 803 } 804 805 // CAServer is the server API for CA service. 806 type CAServer interface { 807 Configure(context.Context, *ConfigureRequest) (*Empty, error) 808 GenerateRoot(context.Context, *Empty) (*Empty, error) 809 ActiveRoot(context.Context, *Empty) (*ActiveRootResponse, error) 810 GenerateIntermediateCSR(context.Context, *Empty) (*GenerateIntermediateCSRResponse, error) 811 SetIntermediate(context.Context, *SetIntermediateRequest) (*Empty, error) 812 ActiveIntermediate(context.Context, *Empty) (*ActiveIntermediateResponse, error) 813 GenerateIntermediate(context.Context, *Empty) (*GenerateIntermediateResponse, error) 814 Sign(context.Context, *SignRequest) (*SignResponse, error) 815 SignIntermediate(context.Context, *SignIntermediateRequest) (*SignIntermediateResponse, error) 816 CrossSignCA(context.Context, *CrossSignCARequest) (*CrossSignCAResponse, error) 817 Cleanup(context.Context, *Empty) (*Empty, error) 818 } 819 820 func RegisterCAServer(s *grpc.Server, srv CAServer) { 821 s.RegisterService(&_CA_serviceDesc, srv) 822 } 823 824 func _CA_Configure_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 825 in := new(ConfigureRequest) 826 if err := dec(in); err != nil { 827 return nil, err 828 } 829 if interceptor == nil { 830 return srv.(CAServer).Configure(ctx, in) 831 } 832 info := &grpc.UnaryServerInfo{ 833 Server: srv, 834 FullMethod: "/plugin.CA/Configure", 835 } 836 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 837 return srv.(CAServer).Configure(ctx, req.(*ConfigureRequest)) 838 } 839 return interceptor(ctx, in, info, handler) 840 } 841 842 func _CA_GenerateRoot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 843 in := new(Empty) 844 if err := dec(in); err != nil { 845 return nil, err 846 } 847 if interceptor == nil { 848 return srv.(CAServer).GenerateRoot(ctx, in) 849 } 850 info := &grpc.UnaryServerInfo{ 851 Server: srv, 852 FullMethod: "/plugin.CA/GenerateRoot", 853 } 854 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 855 return srv.(CAServer).GenerateRoot(ctx, req.(*Empty)) 856 } 857 return interceptor(ctx, in, info, handler) 858 } 859 860 func _CA_ActiveRoot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 861 in := new(Empty) 862 if err := dec(in); err != nil { 863 return nil, err 864 } 865 if interceptor == nil { 866 return srv.(CAServer).ActiveRoot(ctx, in) 867 } 868 info := &grpc.UnaryServerInfo{ 869 Server: srv, 870 FullMethod: "/plugin.CA/ActiveRoot", 871 } 872 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 873 return srv.(CAServer).ActiveRoot(ctx, req.(*Empty)) 874 } 875 return interceptor(ctx, in, info, handler) 876 } 877 878 func _CA_GenerateIntermediateCSR_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 879 in := new(Empty) 880 if err := dec(in); err != nil { 881 return nil, err 882 } 883 if interceptor == nil { 884 return srv.(CAServer).GenerateIntermediateCSR(ctx, in) 885 } 886 info := &grpc.UnaryServerInfo{ 887 Server: srv, 888 FullMethod: "/plugin.CA/GenerateIntermediateCSR", 889 } 890 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 891 return srv.(CAServer).GenerateIntermediateCSR(ctx, req.(*Empty)) 892 } 893 return interceptor(ctx, in, info, handler) 894 } 895 896 func _CA_SetIntermediate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 897 in := new(SetIntermediateRequest) 898 if err := dec(in); err != nil { 899 return nil, err 900 } 901 if interceptor == nil { 902 return srv.(CAServer).SetIntermediate(ctx, in) 903 } 904 info := &grpc.UnaryServerInfo{ 905 Server: srv, 906 FullMethod: "/plugin.CA/SetIntermediate", 907 } 908 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 909 return srv.(CAServer).SetIntermediate(ctx, req.(*SetIntermediateRequest)) 910 } 911 return interceptor(ctx, in, info, handler) 912 } 913 914 func _CA_ActiveIntermediate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 915 in := new(Empty) 916 if err := dec(in); err != nil { 917 return nil, err 918 } 919 if interceptor == nil { 920 return srv.(CAServer).ActiveIntermediate(ctx, in) 921 } 922 info := &grpc.UnaryServerInfo{ 923 Server: srv, 924 FullMethod: "/plugin.CA/ActiveIntermediate", 925 } 926 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 927 return srv.(CAServer).ActiveIntermediate(ctx, req.(*Empty)) 928 } 929 return interceptor(ctx, in, info, handler) 930 } 931 932 func _CA_GenerateIntermediate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 933 in := new(Empty) 934 if err := dec(in); err != nil { 935 return nil, err 936 } 937 if interceptor == nil { 938 return srv.(CAServer).GenerateIntermediate(ctx, in) 939 } 940 info := &grpc.UnaryServerInfo{ 941 Server: srv, 942 FullMethod: "/plugin.CA/GenerateIntermediate", 943 } 944 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 945 return srv.(CAServer).GenerateIntermediate(ctx, req.(*Empty)) 946 } 947 return interceptor(ctx, in, info, handler) 948 } 949 950 func _CA_Sign_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 951 in := new(SignRequest) 952 if err := dec(in); err != nil { 953 return nil, err 954 } 955 if interceptor == nil { 956 return srv.(CAServer).Sign(ctx, in) 957 } 958 info := &grpc.UnaryServerInfo{ 959 Server: srv, 960 FullMethod: "/plugin.CA/Sign", 961 } 962 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 963 return srv.(CAServer).Sign(ctx, req.(*SignRequest)) 964 } 965 return interceptor(ctx, in, info, handler) 966 } 967 968 func _CA_SignIntermediate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 969 in := new(SignIntermediateRequest) 970 if err := dec(in); err != nil { 971 return nil, err 972 } 973 if interceptor == nil { 974 return srv.(CAServer).SignIntermediate(ctx, in) 975 } 976 info := &grpc.UnaryServerInfo{ 977 Server: srv, 978 FullMethod: "/plugin.CA/SignIntermediate", 979 } 980 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 981 return srv.(CAServer).SignIntermediate(ctx, req.(*SignIntermediateRequest)) 982 } 983 return interceptor(ctx, in, info, handler) 984 } 985 986 func _CA_CrossSignCA_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 987 in := new(CrossSignCARequest) 988 if err := dec(in); err != nil { 989 return nil, err 990 } 991 if interceptor == nil { 992 return srv.(CAServer).CrossSignCA(ctx, in) 993 } 994 info := &grpc.UnaryServerInfo{ 995 Server: srv, 996 FullMethod: "/plugin.CA/CrossSignCA", 997 } 998 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 999 return srv.(CAServer).CrossSignCA(ctx, req.(*CrossSignCARequest)) 1000 } 1001 return interceptor(ctx, in, info, handler) 1002 } 1003 1004 func _CA_Cleanup_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1005 in := new(Empty) 1006 if err := dec(in); err != nil { 1007 return nil, err 1008 } 1009 if interceptor == nil { 1010 return srv.(CAServer).Cleanup(ctx, in) 1011 } 1012 info := &grpc.UnaryServerInfo{ 1013 Server: srv, 1014 FullMethod: "/plugin.CA/Cleanup", 1015 } 1016 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1017 return srv.(CAServer).Cleanup(ctx, req.(*Empty)) 1018 } 1019 return interceptor(ctx, in, info, handler) 1020 } 1021 1022 var _CA_serviceDesc = grpc.ServiceDesc{ 1023 ServiceName: "plugin.CA", 1024 HandlerType: (*CAServer)(nil), 1025 Methods: []grpc.MethodDesc{ 1026 { 1027 MethodName: "Configure", 1028 Handler: _CA_Configure_Handler, 1029 }, 1030 { 1031 MethodName: "GenerateRoot", 1032 Handler: _CA_GenerateRoot_Handler, 1033 }, 1034 { 1035 MethodName: "ActiveRoot", 1036 Handler: _CA_ActiveRoot_Handler, 1037 }, 1038 { 1039 MethodName: "GenerateIntermediateCSR", 1040 Handler: _CA_GenerateIntermediateCSR_Handler, 1041 }, 1042 { 1043 MethodName: "SetIntermediate", 1044 Handler: _CA_SetIntermediate_Handler, 1045 }, 1046 { 1047 MethodName: "ActiveIntermediate", 1048 Handler: _CA_ActiveIntermediate_Handler, 1049 }, 1050 { 1051 MethodName: "GenerateIntermediate", 1052 Handler: _CA_GenerateIntermediate_Handler, 1053 }, 1054 { 1055 MethodName: "Sign", 1056 Handler: _CA_Sign_Handler, 1057 }, 1058 { 1059 MethodName: "SignIntermediate", 1060 Handler: _CA_SignIntermediate_Handler, 1061 }, 1062 { 1063 MethodName: "CrossSignCA", 1064 Handler: _CA_CrossSignCA_Handler, 1065 }, 1066 { 1067 MethodName: "Cleanup", 1068 Handler: _CA_Cleanup_Handler, 1069 }, 1070 }, 1071 Streams: []grpc.StreamDesc{}, 1072 Metadata: "agent/connect/ca/plugin/provider.proto", 1073 } 1074 1075 func (m *ConfigureRequest) Marshal() (dAtA []byte, err error) { 1076 size := m.Size() 1077 dAtA = make([]byte, size) 1078 n, err := m.MarshalTo(dAtA) 1079 if err != nil { 1080 return nil, err 1081 } 1082 return dAtA[:n], nil 1083 } 1084 1085 func (m *ConfigureRequest) MarshalTo(dAtA []byte) (int, error) { 1086 var i int 1087 _ = i 1088 var l int 1089 _ = l 1090 if len(m.ClusterId) > 0 { 1091 dAtA[i] = 0xa 1092 i++ 1093 i = encodeVarintProvider(dAtA, i, uint64(len(m.ClusterId))) 1094 i += copy(dAtA[i:], m.ClusterId) 1095 } 1096 if m.IsRoot { 1097 dAtA[i] = 0x10 1098 i++ 1099 if m.IsRoot { 1100 dAtA[i] = 1 1101 } else { 1102 dAtA[i] = 0 1103 } 1104 i++ 1105 } 1106 if len(m.Config) > 0 { 1107 dAtA[i] = 0x1a 1108 i++ 1109 i = encodeVarintProvider(dAtA, i, uint64(len(m.Config))) 1110 i += copy(dAtA[i:], m.Config) 1111 } 1112 if m.XXX_unrecognized != nil { 1113 i += copy(dAtA[i:], m.XXX_unrecognized) 1114 } 1115 return i, nil 1116 } 1117 1118 func (m *SetIntermediateRequest) Marshal() (dAtA []byte, err error) { 1119 size := m.Size() 1120 dAtA = make([]byte, size) 1121 n, err := m.MarshalTo(dAtA) 1122 if err != nil { 1123 return nil, err 1124 } 1125 return dAtA[:n], nil 1126 } 1127 1128 func (m *SetIntermediateRequest) MarshalTo(dAtA []byte) (int, error) { 1129 var i int 1130 _ = i 1131 var l int 1132 _ = l 1133 if len(m.IntermediatePem) > 0 { 1134 dAtA[i] = 0xa 1135 i++ 1136 i = encodeVarintProvider(dAtA, i, uint64(len(m.IntermediatePem))) 1137 i += copy(dAtA[i:], m.IntermediatePem) 1138 } 1139 if len(m.RootPem) > 0 { 1140 dAtA[i] = 0x12 1141 i++ 1142 i = encodeVarintProvider(dAtA, i, uint64(len(m.RootPem))) 1143 i += copy(dAtA[i:], m.RootPem) 1144 } 1145 if m.XXX_unrecognized != nil { 1146 i += copy(dAtA[i:], m.XXX_unrecognized) 1147 } 1148 return i, nil 1149 } 1150 1151 func (m *SignRequest) Marshal() (dAtA []byte, err error) { 1152 size := m.Size() 1153 dAtA = make([]byte, size) 1154 n, err := m.MarshalTo(dAtA) 1155 if err != nil { 1156 return nil, err 1157 } 1158 return dAtA[:n], nil 1159 } 1160 1161 func (m *SignRequest) MarshalTo(dAtA []byte) (int, error) { 1162 var i int 1163 _ = i 1164 var l int 1165 _ = l 1166 if len(m.Csr) > 0 { 1167 dAtA[i] = 0xa 1168 i++ 1169 i = encodeVarintProvider(dAtA, i, uint64(len(m.Csr))) 1170 i += copy(dAtA[i:], m.Csr) 1171 } 1172 if m.XXX_unrecognized != nil { 1173 i += copy(dAtA[i:], m.XXX_unrecognized) 1174 } 1175 return i, nil 1176 } 1177 1178 func (m *SignIntermediateRequest) Marshal() (dAtA []byte, err error) { 1179 size := m.Size() 1180 dAtA = make([]byte, size) 1181 n, err := m.MarshalTo(dAtA) 1182 if err != nil { 1183 return nil, err 1184 } 1185 return dAtA[:n], nil 1186 } 1187 1188 func (m *SignIntermediateRequest) MarshalTo(dAtA []byte) (int, error) { 1189 var i int 1190 _ = i 1191 var l int 1192 _ = l 1193 if len(m.Csr) > 0 { 1194 dAtA[i] = 0xa 1195 i++ 1196 i = encodeVarintProvider(dAtA, i, uint64(len(m.Csr))) 1197 i += copy(dAtA[i:], m.Csr) 1198 } 1199 if m.XXX_unrecognized != nil { 1200 i += copy(dAtA[i:], m.XXX_unrecognized) 1201 } 1202 return i, nil 1203 } 1204 1205 func (m *CrossSignCARequest) Marshal() (dAtA []byte, err error) { 1206 size := m.Size() 1207 dAtA = make([]byte, size) 1208 n, err := m.MarshalTo(dAtA) 1209 if err != nil { 1210 return nil, err 1211 } 1212 return dAtA[:n], nil 1213 } 1214 1215 func (m *CrossSignCARequest) MarshalTo(dAtA []byte) (int, error) { 1216 var i int 1217 _ = i 1218 var l int 1219 _ = l 1220 if len(m.Crt) > 0 { 1221 dAtA[i] = 0xa 1222 i++ 1223 i = encodeVarintProvider(dAtA, i, uint64(len(m.Crt))) 1224 i += copy(dAtA[i:], m.Crt) 1225 } 1226 if m.XXX_unrecognized != nil { 1227 i += copy(dAtA[i:], m.XXX_unrecognized) 1228 } 1229 return i, nil 1230 } 1231 1232 func (m *ActiveRootResponse) Marshal() (dAtA []byte, err error) { 1233 size := m.Size() 1234 dAtA = make([]byte, size) 1235 n, err := m.MarshalTo(dAtA) 1236 if err != nil { 1237 return nil, err 1238 } 1239 return dAtA[:n], nil 1240 } 1241 1242 func (m *ActiveRootResponse) MarshalTo(dAtA []byte) (int, error) { 1243 var i int 1244 _ = i 1245 var l int 1246 _ = l 1247 if len(m.CrtPem) > 0 { 1248 dAtA[i] = 0xa 1249 i++ 1250 i = encodeVarintProvider(dAtA, i, uint64(len(m.CrtPem))) 1251 i += copy(dAtA[i:], m.CrtPem) 1252 } 1253 if m.XXX_unrecognized != nil { 1254 i += copy(dAtA[i:], m.XXX_unrecognized) 1255 } 1256 return i, nil 1257 } 1258 1259 func (m *GenerateIntermediateCSRResponse) Marshal() (dAtA []byte, err error) { 1260 size := m.Size() 1261 dAtA = make([]byte, size) 1262 n, err := m.MarshalTo(dAtA) 1263 if err != nil { 1264 return nil, err 1265 } 1266 return dAtA[:n], nil 1267 } 1268 1269 func (m *GenerateIntermediateCSRResponse) MarshalTo(dAtA []byte) (int, error) { 1270 var i int 1271 _ = i 1272 var l int 1273 _ = l 1274 if len(m.CsrPem) > 0 { 1275 dAtA[i] = 0xa 1276 i++ 1277 i = encodeVarintProvider(dAtA, i, uint64(len(m.CsrPem))) 1278 i += copy(dAtA[i:], m.CsrPem) 1279 } 1280 if m.XXX_unrecognized != nil { 1281 i += copy(dAtA[i:], m.XXX_unrecognized) 1282 } 1283 return i, nil 1284 } 1285 1286 func (m *ActiveIntermediateResponse) Marshal() (dAtA []byte, err error) { 1287 size := m.Size() 1288 dAtA = make([]byte, size) 1289 n, err := m.MarshalTo(dAtA) 1290 if err != nil { 1291 return nil, err 1292 } 1293 return dAtA[:n], nil 1294 } 1295 1296 func (m *ActiveIntermediateResponse) MarshalTo(dAtA []byte) (int, error) { 1297 var i int 1298 _ = i 1299 var l int 1300 _ = l 1301 if len(m.CrtPem) > 0 { 1302 dAtA[i] = 0xa 1303 i++ 1304 i = encodeVarintProvider(dAtA, i, uint64(len(m.CrtPem))) 1305 i += copy(dAtA[i:], m.CrtPem) 1306 } 1307 if m.XXX_unrecognized != nil { 1308 i += copy(dAtA[i:], m.XXX_unrecognized) 1309 } 1310 return i, nil 1311 } 1312 1313 func (m *GenerateIntermediateResponse) Marshal() (dAtA []byte, err error) { 1314 size := m.Size() 1315 dAtA = make([]byte, size) 1316 n, err := m.MarshalTo(dAtA) 1317 if err != nil { 1318 return nil, err 1319 } 1320 return dAtA[:n], nil 1321 } 1322 1323 func (m *GenerateIntermediateResponse) MarshalTo(dAtA []byte) (int, error) { 1324 var i int 1325 _ = i 1326 var l int 1327 _ = l 1328 if len(m.CrtPem) > 0 { 1329 dAtA[i] = 0xa 1330 i++ 1331 i = encodeVarintProvider(dAtA, i, uint64(len(m.CrtPem))) 1332 i += copy(dAtA[i:], m.CrtPem) 1333 } 1334 if m.XXX_unrecognized != nil { 1335 i += copy(dAtA[i:], m.XXX_unrecognized) 1336 } 1337 return i, nil 1338 } 1339 1340 func (m *SignResponse) Marshal() (dAtA []byte, err error) { 1341 size := m.Size() 1342 dAtA = make([]byte, size) 1343 n, err := m.MarshalTo(dAtA) 1344 if err != nil { 1345 return nil, err 1346 } 1347 return dAtA[:n], nil 1348 } 1349 1350 func (m *SignResponse) MarshalTo(dAtA []byte) (int, error) { 1351 var i int 1352 _ = i 1353 var l int 1354 _ = l 1355 if len(m.CrtPem) > 0 { 1356 dAtA[i] = 0xa 1357 i++ 1358 i = encodeVarintProvider(dAtA, i, uint64(len(m.CrtPem))) 1359 i += copy(dAtA[i:], m.CrtPem) 1360 } 1361 if m.XXX_unrecognized != nil { 1362 i += copy(dAtA[i:], m.XXX_unrecognized) 1363 } 1364 return i, nil 1365 } 1366 1367 func (m *SignIntermediateResponse) Marshal() (dAtA []byte, err error) { 1368 size := m.Size() 1369 dAtA = make([]byte, size) 1370 n, err := m.MarshalTo(dAtA) 1371 if err != nil { 1372 return nil, err 1373 } 1374 return dAtA[:n], nil 1375 } 1376 1377 func (m *SignIntermediateResponse) MarshalTo(dAtA []byte) (int, error) { 1378 var i int 1379 _ = i 1380 var l int 1381 _ = l 1382 if len(m.CrtPem) > 0 { 1383 dAtA[i] = 0xa 1384 i++ 1385 i = encodeVarintProvider(dAtA, i, uint64(len(m.CrtPem))) 1386 i += copy(dAtA[i:], m.CrtPem) 1387 } 1388 if m.XXX_unrecognized != nil { 1389 i += copy(dAtA[i:], m.XXX_unrecognized) 1390 } 1391 return i, nil 1392 } 1393 1394 func (m *CrossSignCAResponse) Marshal() (dAtA []byte, err error) { 1395 size := m.Size() 1396 dAtA = make([]byte, size) 1397 n, err := m.MarshalTo(dAtA) 1398 if err != nil { 1399 return nil, err 1400 } 1401 return dAtA[:n], nil 1402 } 1403 1404 func (m *CrossSignCAResponse) MarshalTo(dAtA []byte) (int, error) { 1405 var i int 1406 _ = i 1407 var l int 1408 _ = l 1409 if len(m.CrtPem) > 0 { 1410 dAtA[i] = 0xa 1411 i++ 1412 i = encodeVarintProvider(dAtA, i, uint64(len(m.CrtPem))) 1413 i += copy(dAtA[i:], m.CrtPem) 1414 } 1415 if m.XXX_unrecognized != nil { 1416 i += copy(dAtA[i:], m.XXX_unrecognized) 1417 } 1418 return i, nil 1419 } 1420 1421 func (m *Empty) Marshal() (dAtA []byte, err error) { 1422 size := m.Size() 1423 dAtA = make([]byte, size) 1424 n, err := m.MarshalTo(dAtA) 1425 if err != nil { 1426 return nil, err 1427 } 1428 return dAtA[:n], nil 1429 } 1430 1431 func (m *Empty) MarshalTo(dAtA []byte) (int, error) { 1432 var i int 1433 _ = i 1434 var l int 1435 _ = l 1436 if m.XXX_unrecognized != nil { 1437 i += copy(dAtA[i:], m.XXX_unrecognized) 1438 } 1439 return i, nil 1440 } 1441 1442 func encodeVarintProvider(dAtA []byte, offset int, v uint64) int { 1443 for v >= 1<<7 { 1444 dAtA[offset] = uint8(v&0x7f | 0x80) 1445 v >>= 7 1446 offset++ 1447 } 1448 dAtA[offset] = uint8(v) 1449 return offset + 1 1450 } 1451 func (m *ConfigureRequest) Size() (n int) { 1452 if m == nil { 1453 return 0 1454 } 1455 var l int 1456 _ = l 1457 l = len(m.ClusterId) 1458 if l > 0 { 1459 n += 1 + l + sovProvider(uint64(l)) 1460 } 1461 if m.IsRoot { 1462 n += 2 1463 } 1464 l = len(m.Config) 1465 if l > 0 { 1466 n += 1 + l + sovProvider(uint64(l)) 1467 } 1468 if m.XXX_unrecognized != nil { 1469 n += len(m.XXX_unrecognized) 1470 } 1471 return n 1472 } 1473 1474 func (m *SetIntermediateRequest) Size() (n int) { 1475 if m == nil { 1476 return 0 1477 } 1478 var l int 1479 _ = l 1480 l = len(m.IntermediatePem) 1481 if l > 0 { 1482 n += 1 + l + sovProvider(uint64(l)) 1483 } 1484 l = len(m.RootPem) 1485 if l > 0 { 1486 n += 1 + l + sovProvider(uint64(l)) 1487 } 1488 if m.XXX_unrecognized != nil { 1489 n += len(m.XXX_unrecognized) 1490 } 1491 return n 1492 } 1493 1494 func (m *SignRequest) Size() (n int) { 1495 if m == nil { 1496 return 0 1497 } 1498 var l int 1499 _ = l 1500 l = len(m.Csr) 1501 if l > 0 { 1502 n += 1 + l + sovProvider(uint64(l)) 1503 } 1504 if m.XXX_unrecognized != nil { 1505 n += len(m.XXX_unrecognized) 1506 } 1507 return n 1508 } 1509 1510 func (m *SignIntermediateRequest) Size() (n int) { 1511 if m == nil { 1512 return 0 1513 } 1514 var l int 1515 _ = l 1516 l = len(m.Csr) 1517 if l > 0 { 1518 n += 1 + l + sovProvider(uint64(l)) 1519 } 1520 if m.XXX_unrecognized != nil { 1521 n += len(m.XXX_unrecognized) 1522 } 1523 return n 1524 } 1525 1526 func (m *CrossSignCARequest) Size() (n int) { 1527 if m == nil { 1528 return 0 1529 } 1530 var l int 1531 _ = l 1532 l = len(m.Crt) 1533 if l > 0 { 1534 n += 1 + l + sovProvider(uint64(l)) 1535 } 1536 if m.XXX_unrecognized != nil { 1537 n += len(m.XXX_unrecognized) 1538 } 1539 return n 1540 } 1541 1542 func (m *ActiveRootResponse) Size() (n int) { 1543 if m == nil { 1544 return 0 1545 } 1546 var l int 1547 _ = l 1548 l = len(m.CrtPem) 1549 if l > 0 { 1550 n += 1 + l + sovProvider(uint64(l)) 1551 } 1552 if m.XXX_unrecognized != nil { 1553 n += len(m.XXX_unrecognized) 1554 } 1555 return n 1556 } 1557 1558 func (m *GenerateIntermediateCSRResponse) Size() (n int) { 1559 if m == nil { 1560 return 0 1561 } 1562 var l int 1563 _ = l 1564 l = len(m.CsrPem) 1565 if l > 0 { 1566 n += 1 + l + sovProvider(uint64(l)) 1567 } 1568 if m.XXX_unrecognized != nil { 1569 n += len(m.XXX_unrecognized) 1570 } 1571 return n 1572 } 1573 1574 func (m *ActiveIntermediateResponse) Size() (n int) { 1575 if m == nil { 1576 return 0 1577 } 1578 var l int 1579 _ = l 1580 l = len(m.CrtPem) 1581 if l > 0 { 1582 n += 1 + l + sovProvider(uint64(l)) 1583 } 1584 if m.XXX_unrecognized != nil { 1585 n += len(m.XXX_unrecognized) 1586 } 1587 return n 1588 } 1589 1590 func (m *GenerateIntermediateResponse) Size() (n int) { 1591 if m == nil { 1592 return 0 1593 } 1594 var l int 1595 _ = l 1596 l = len(m.CrtPem) 1597 if l > 0 { 1598 n += 1 + l + sovProvider(uint64(l)) 1599 } 1600 if m.XXX_unrecognized != nil { 1601 n += len(m.XXX_unrecognized) 1602 } 1603 return n 1604 } 1605 1606 func (m *SignResponse) Size() (n int) { 1607 if m == nil { 1608 return 0 1609 } 1610 var l int 1611 _ = l 1612 l = len(m.CrtPem) 1613 if l > 0 { 1614 n += 1 + l + sovProvider(uint64(l)) 1615 } 1616 if m.XXX_unrecognized != nil { 1617 n += len(m.XXX_unrecognized) 1618 } 1619 return n 1620 } 1621 1622 func (m *SignIntermediateResponse) Size() (n int) { 1623 if m == nil { 1624 return 0 1625 } 1626 var l int 1627 _ = l 1628 l = len(m.CrtPem) 1629 if l > 0 { 1630 n += 1 + l + sovProvider(uint64(l)) 1631 } 1632 if m.XXX_unrecognized != nil { 1633 n += len(m.XXX_unrecognized) 1634 } 1635 return n 1636 } 1637 1638 func (m *CrossSignCAResponse) Size() (n int) { 1639 if m == nil { 1640 return 0 1641 } 1642 var l int 1643 _ = l 1644 l = len(m.CrtPem) 1645 if l > 0 { 1646 n += 1 + l + sovProvider(uint64(l)) 1647 } 1648 if m.XXX_unrecognized != nil { 1649 n += len(m.XXX_unrecognized) 1650 } 1651 return n 1652 } 1653 1654 func (m *Empty) Size() (n int) { 1655 if m == nil { 1656 return 0 1657 } 1658 var l int 1659 _ = l 1660 if m.XXX_unrecognized != nil { 1661 n += len(m.XXX_unrecognized) 1662 } 1663 return n 1664 } 1665 1666 func sovProvider(x uint64) (n int) { 1667 for { 1668 n++ 1669 x >>= 7 1670 if x == 0 { 1671 break 1672 } 1673 } 1674 return n 1675 } 1676 func sozProvider(x uint64) (n int) { 1677 return sovProvider(uint64((x << 1) ^ uint64((int64(x) >> 63)))) 1678 } 1679 func (m *ConfigureRequest) Unmarshal(dAtA []byte) error { 1680 l := len(dAtA) 1681 iNdEx := 0 1682 for iNdEx < l { 1683 preIndex := iNdEx 1684 var wire uint64 1685 for shift := uint(0); ; shift += 7 { 1686 if shift >= 64 { 1687 return ErrIntOverflowProvider 1688 } 1689 if iNdEx >= l { 1690 return io.ErrUnexpectedEOF 1691 } 1692 b := dAtA[iNdEx] 1693 iNdEx++ 1694 wire |= (uint64(b) & 0x7F) << shift 1695 if b < 0x80 { 1696 break 1697 } 1698 } 1699 fieldNum := int32(wire >> 3) 1700 wireType := int(wire & 0x7) 1701 if wireType == 4 { 1702 return fmt.Errorf("proto: ConfigureRequest: wiretype end group for non-group") 1703 } 1704 if fieldNum <= 0 { 1705 return fmt.Errorf("proto: ConfigureRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1706 } 1707 switch fieldNum { 1708 case 1: 1709 if wireType != 2 { 1710 return fmt.Errorf("proto: wrong wireType = %d for field ClusterId", wireType) 1711 } 1712 var stringLen uint64 1713 for shift := uint(0); ; shift += 7 { 1714 if shift >= 64 { 1715 return ErrIntOverflowProvider 1716 } 1717 if iNdEx >= l { 1718 return io.ErrUnexpectedEOF 1719 } 1720 b := dAtA[iNdEx] 1721 iNdEx++ 1722 stringLen |= (uint64(b) & 0x7F) << shift 1723 if b < 0x80 { 1724 break 1725 } 1726 } 1727 intStringLen := int(stringLen) 1728 if intStringLen < 0 { 1729 return ErrInvalidLengthProvider 1730 } 1731 postIndex := iNdEx + intStringLen 1732 if postIndex > l { 1733 return io.ErrUnexpectedEOF 1734 } 1735 m.ClusterId = string(dAtA[iNdEx:postIndex]) 1736 iNdEx = postIndex 1737 case 2: 1738 if wireType != 0 { 1739 return fmt.Errorf("proto: wrong wireType = %d for field IsRoot", wireType) 1740 } 1741 var v int 1742 for shift := uint(0); ; shift += 7 { 1743 if shift >= 64 { 1744 return ErrIntOverflowProvider 1745 } 1746 if iNdEx >= l { 1747 return io.ErrUnexpectedEOF 1748 } 1749 b := dAtA[iNdEx] 1750 iNdEx++ 1751 v |= (int(b) & 0x7F) << shift 1752 if b < 0x80 { 1753 break 1754 } 1755 } 1756 m.IsRoot = bool(v != 0) 1757 case 3: 1758 if wireType != 2 { 1759 return fmt.Errorf("proto: wrong wireType = %d for field Config", wireType) 1760 } 1761 var byteLen int 1762 for shift := uint(0); ; shift += 7 { 1763 if shift >= 64 { 1764 return ErrIntOverflowProvider 1765 } 1766 if iNdEx >= l { 1767 return io.ErrUnexpectedEOF 1768 } 1769 b := dAtA[iNdEx] 1770 iNdEx++ 1771 byteLen |= (int(b) & 0x7F) << shift 1772 if b < 0x80 { 1773 break 1774 } 1775 } 1776 if byteLen < 0 { 1777 return ErrInvalidLengthProvider 1778 } 1779 postIndex := iNdEx + byteLen 1780 if postIndex > l { 1781 return io.ErrUnexpectedEOF 1782 } 1783 m.Config = append(m.Config[:0], dAtA[iNdEx:postIndex]...) 1784 if m.Config == nil { 1785 m.Config = []byte{} 1786 } 1787 iNdEx = postIndex 1788 default: 1789 iNdEx = preIndex 1790 skippy, err := skipProvider(dAtA[iNdEx:]) 1791 if err != nil { 1792 return err 1793 } 1794 if skippy < 0 { 1795 return ErrInvalidLengthProvider 1796 } 1797 if (iNdEx + skippy) > l { 1798 return io.ErrUnexpectedEOF 1799 } 1800 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1801 iNdEx += skippy 1802 } 1803 } 1804 1805 if iNdEx > l { 1806 return io.ErrUnexpectedEOF 1807 } 1808 return nil 1809 } 1810 func (m *SetIntermediateRequest) Unmarshal(dAtA []byte) error { 1811 l := len(dAtA) 1812 iNdEx := 0 1813 for iNdEx < l { 1814 preIndex := iNdEx 1815 var wire uint64 1816 for shift := uint(0); ; shift += 7 { 1817 if shift >= 64 { 1818 return ErrIntOverflowProvider 1819 } 1820 if iNdEx >= l { 1821 return io.ErrUnexpectedEOF 1822 } 1823 b := dAtA[iNdEx] 1824 iNdEx++ 1825 wire |= (uint64(b) & 0x7F) << shift 1826 if b < 0x80 { 1827 break 1828 } 1829 } 1830 fieldNum := int32(wire >> 3) 1831 wireType := int(wire & 0x7) 1832 if wireType == 4 { 1833 return fmt.Errorf("proto: SetIntermediateRequest: wiretype end group for non-group") 1834 } 1835 if fieldNum <= 0 { 1836 return fmt.Errorf("proto: SetIntermediateRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1837 } 1838 switch fieldNum { 1839 case 1: 1840 if wireType != 2 { 1841 return fmt.Errorf("proto: wrong wireType = %d for field IntermediatePem", wireType) 1842 } 1843 var stringLen uint64 1844 for shift := uint(0); ; shift += 7 { 1845 if shift >= 64 { 1846 return ErrIntOverflowProvider 1847 } 1848 if iNdEx >= l { 1849 return io.ErrUnexpectedEOF 1850 } 1851 b := dAtA[iNdEx] 1852 iNdEx++ 1853 stringLen |= (uint64(b) & 0x7F) << shift 1854 if b < 0x80 { 1855 break 1856 } 1857 } 1858 intStringLen := int(stringLen) 1859 if intStringLen < 0 { 1860 return ErrInvalidLengthProvider 1861 } 1862 postIndex := iNdEx + intStringLen 1863 if postIndex > l { 1864 return io.ErrUnexpectedEOF 1865 } 1866 m.IntermediatePem = string(dAtA[iNdEx:postIndex]) 1867 iNdEx = postIndex 1868 case 2: 1869 if wireType != 2 { 1870 return fmt.Errorf("proto: wrong wireType = %d for field RootPem", wireType) 1871 } 1872 var stringLen uint64 1873 for shift := uint(0); ; shift += 7 { 1874 if shift >= 64 { 1875 return ErrIntOverflowProvider 1876 } 1877 if iNdEx >= l { 1878 return io.ErrUnexpectedEOF 1879 } 1880 b := dAtA[iNdEx] 1881 iNdEx++ 1882 stringLen |= (uint64(b) & 0x7F) << shift 1883 if b < 0x80 { 1884 break 1885 } 1886 } 1887 intStringLen := int(stringLen) 1888 if intStringLen < 0 { 1889 return ErrInvalidLengthProvider 1890 } 1891 postIndex := iNdEx + intStringLen 1892 if postIndex > l { 1893 return io.ErrUnexpectedEOF 1894 } 1895 m.RootPem = string(dAtA[iNdEx:postIndex]) 1896 iNdEx = postIndex 1897 default: 1898 iNdEx = preIndex 1899 skippy, err := skipProvider(dAtA[iNdEx:]) 1900 if err != nil { 1901 return err 1902 } 1903 if skippy < 0 { 1904 return ErrInvalidLengthProvider 1905 } 1906 if (iNdEx + skippy) > l { 1907 return io.ErrUnexpectedEOF 1908 } 1909 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1910 iNdEx += skippy 1911 } 1912 } 1913 1914 if iNdEx > l { 1915 return io.ErrUnexpectedEOF 1916 } 1917 return nil 1918 } 1919 func (m *SignRequest) Unmarshal(dAtA []byte) error { 1920 l := len(dAtA) 1921 iNdEx := 0 1922 for iNdEx < l { 1923 preIndex := iNdEx 1924 var wire uint64 1925 for shift := uint(0); ; shift += 7 { 1926 if shift >= 64 { 1927 return ErrIntOverflowProvider 1928 } 1929 if iNdEx >= l { 1930 return io.ErrUnexpectedEOF 1931 } 1932 b := dAtA[iNdEx] 1933 iNdEx++ 1934 wire |= (uint64(b) & 0x7F) << shift 1935 if b < 0x80 { 1936 break 1937 } 1938 } 1939 fieldNum := int32(wire >> 3) 1940 wireType := int(wire & 0x7) 1941 if wireType == 4 { 1942 return fmt.Errorf("proto: SignRequest: wiretype end group for non-group") 1943 } 1944 if fieldNum <= 0 { 1945 return fmt.Errorf("proto: SignRequest: illegal tag %d (wire type %d)", fieldNum, wire) 1946 } 1947 switch fieldNum { 1948 case 1: 1949 if wireType != 2 { 1950 return fmt.Errorf("proto: wrong wireType = %d for field Csr", wireType) 1951 } 1952 var byteLen int 1953 for shift := uint(0); ; shift += 7 { 1954 if shift >= 64 { 1955 return ErrIntOverflowProvider 1956 } 1957 if iNdEx >= l { 1958 return io.ErrUnexpectedEOF 1959 } 1960 b := dAtA[iNdEx] 1961 iNdEx++ 1962 byteLen |= (int(b) & 0x7F) << shift 1963 if b < 0x80 { 1964 break 1965 } 1966 } 1967 if byteLen < 0 { 1968 return ErrInvalidLengthProvider 1969 } 1970 postIndex := iNdEx + byteLen 1971 if postIndex > l { 1972 return io.ErrUnexpectedEOF 1973 } 1974 m.Csr = append(m.Csr[:0], dAtA[iNdEx:postIndex]...) 1975 if m.Csr == nil { 1976 m.Csr = []byte{} 1977 } 1978 iNdEx = postIndex 1979 default: 1980 iNdEx = preIndex 1981 skippy, err := skipProvider(dAtA[iNdEx:]) 1982 if err != nil { 1983 return err 1984 } 1985 if skippy < 0 { 1986 return ErrInvalidLengthProvider 1987 } 1988 if (iNdEx + skippy) > l { 1989 return io.ErrUnexpectedEOF 1990 } 1991 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 1992 iNdEx += skippy 1993 } 1994 } 1995 1996 if iNdEx > l { 1997 return io.ErrUnexpectedEOF 1998 } 1999 return nil 2000 } 2001 func (m *SignIntermediateRequest) Unmarshal(dAtA []byte) error { 2002 l := len(dAtA) 2003 iNdEx := 0 2004 for iNdEx < l { 2005 preIndex := iNdEx 2006 var wire uint64 2007 for shift := uint(0); ; shift += 7 { 2008 if shift >= 64 { 2009 return ErrIntOverflowProvider 2010 } 2011 if iNdEx >= l { 2012 return io.ErrUnexpectedEOF 2013 } 2014 b := dAtA[iNdEx] 2015 iNdEx++ 2016 wire |= (uint64(b) & 0x7F) << shift 2017 if b < 0x80 { 2018 break 2019 } 2020 } 2021 fieldNum := int32(wire >> 3) 2022 wireType := int(wire & 0x7) 2023 if wireType == 4 { 2024 return fmt.Errorf("proto: SignIntermediateRequest: wiretype end group for non-group") 2025 } 2026 if fieldNum <= 0 { 2027 return fmt.Errorf("proto: SignIntermediateRequest: illegal tag %d (wire type %d)", fieldNum, wire) 2028 } 2029 switch fieldNum { 2030 case 1: 2031 if wireType != 2 { 2032 return fmt.Errorf("proto: wrong wireType = %d for field Csr", wireType) 2033 } 2034 var byteLen int 2035 for shift := uint(0); ; shift += 7 { 2036 if shift >= 64 { 2037 return ErrIntOverflowProvider 2038 } 2039 if iNdEx >= l { 2040 return io.ErrUnexpectedEOF 2041 } 2042 b := dAtA[iNdEx] 2043 iNdEx++ 2044 byteLen |= (int(b) & 0x7F) << shift 2045 if b < 0x80 { 2046 break 2047 } 2048 } 2049 if byteLen < 0 { 2050 return ErrInvalidLengthProvider 2051 } 2052 postIndex := iNdEx + byteLen 2053 if postIndex > l { 2054 return io.ErrUnexpectedEOF 2055 } 2056 m.Csr = append(m.Csr[:0], dAtA[iNdEx:postIndex]...) 2057 if m.Csr == nil { 2058 m.Csr = []byte{} 2059 } 2060 iNdEx = postIndex 2061 default: 2062 iNdEx = preIndex 2063 skippy, err := skipProvider(dAtA[iNdEx:]) 2064 if err != nil { 2065 return err 2066 } 2067 if skippy < 0 { 2068 return ErrInvalidLengthProvider 2069 } 2070 if (iNdEx + skippy) > l { 2071 return io.ErrUnexpectedEOF 2072 } 2073 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2074 iNdEx += skippy 2075 } 2076 } 2077 2078 if iNdEx > l { 2079 return io.ErrUnexpectedEOF 2080 } 2081 return nil 2082 } 2083 func (m *CrossSignCARequest) Unmarshal(dAtA []byte) error { 2084 l := len(dAtA) 2085 iNdEx := 0 2086 for iNdEx < l { 2087 preIndex := iNdEx 2088 var wire uint64 2089 for shift := uint(0); ; shift += 7 { 2090 if shift >= 64 { 2091 return ErrIntOverflowProvider 2092 } 2093 if iNdEx >= l { 2094 return io.ErrUnexpectedEOF 2095 } 2096 b := dAtA[iNdEx] 2097 iNdEx++ 2098 wire |= (uint64(b) & 0x7F) << shift 2099 if b < 0x80 { 2100 break 2101 } 2102 } 2103 fieldNum := int32(wire >> 3) 2104 wireType := int(wire & 0x7) 2105 if wireType == 4 { 2106 return fmt.Errorf("proto: CrossSignCARequest: wiretype end group for non-group") 2107 } 2108 if fieldNum <= 0 { 2109 return fmt.Errorf("proto: CrossSignCARequest: illegal tag %d (wire type %d)", fieldNum, wire) 2110 } 2111 switch fieldNum { 2112 case 1: 2113 if wireType != 2 { 2114 return fmt.Errorf("proto: wrong wireType = %d for field Crt", wireType) 2115 } 2116 var byteLen int 2117 for shift := uint(0); ; shift += 7 { 2118 if shift >= 64 { 2119 return ErrIntOverflowProvider 2120 } 2121 if iNdEx >= l { 2122 return io.ErrUnexpectedEOF 2123 } 2124 b := dAtA[iNdEx] 2125 iNdEx++ 2126 byteLen |= (int(b) & 0x7F) << shift 2127 if b < 0x80 { 2128 break 2129 } 2130 } 2131 if byteLen < 0 { 2132 return ErrInvalidLengthProvider 2133 } 2134 postIndex := iNdEx + byteLen 2135 if postIndex > l { 2136 return io.ErrUnexpectedEOF 2137 } 2138 m.Crt = append(m.Crt[:0], dAtA[iNdEx:postIndex]...) 2139 if m.Crt == nil { 2140 m.Crt = []byte{} 2141 } 2142 iNdEx = postIndex 2143 default: 2144 iNdEx = preIndex 2145 skippy, err := skipProvider(dAtA[iNdEx:]) 2146 if err != nil { 2147 return err 2148 } 2149 if skippy < 0 { 2150 return ErrInvalidLengthProvider 2151 } 2152 if (iNdEx + skippy) > l { 2153 return io.ErrUnexpectedEOF 2154 } 2155 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2156 iNdEx += skippy 2157 } 2158 } 2159 2160 if iNdEx > l { 2161 return io.ErrUnexpectedEOF 2162 } 2163 return nil 2164 } 2165 func (m *ActiveRootResponse) Unmarshal(dAtA []byte) error { 2166 l := len(dAtA) 2167 iNdEx := 0 2168 for iNdEx < l { 2169 preIndex := iNdEx 2170 var wire uint64 2171 for shift := uint(0); ; shift += 7 { 2172 if shift >= 64 { 2173 return ErrIntOverflowProvider 2174 } 2175 if iNdEx >= l { 2176 return io.ErrUnexpectedEOF 2177 } 2178 b := dAtA[iNdEx] 2179 iNdEx++ 2180 wire |= (uint64(b) & 0x7F) << shift 2181 if b < 0x80 { 2182 break 2183 } 2184 } 2185 fieldNum := int32(wire >> 3) 2186 wireType := int(wire & 0x7) 2187 if wireType == 4 { 2188 return fmt.Errorf("proto: ActiveRootResponse: wiretype end group for non-group") 2189 } 2190 if fieldNum <= 0 { 2191 return fmt.Errorf("proto: ActiveRootResponse: illegal tag %d (wire type %d)", fieldNum, wire) 2192 } 2193 switch fieldNum { 2194 case 1: 2195 if wireType != 2 { 2196 return fmt.Errorf("proto: wrong wireType = %d for field CrtPem", wireType) 2197 } 2198 var stringLen uint64 2199 for shift := uint(0); ; shift += 7 { 2200 if shift >= 64 { 2201 return ErrIntOverflowProvider 2202 } 2203 if iNdEx >= l { 2204 return io.ErrUnexpectedEOF 2205 } 2206 b := dAtA[iNdEx] 2207 iNdEx++ 2208 stringLen |= (uint64(b) & 0x7F) << shift 2209 if b < 0x80 { 2210 break 2211 } 2212 } 2213 intStringLen := int(stringLen) 2214 if intStringLen < 0 { 2215 return ErrInvalidLengthProvider 2216 } 2217 postIndex := iNdEx + intStringLen 2218 if postIndex > l { 2219 return io.ErrUnexpectedEOF 2220 } 2221 m.CrtPem = string(dAtA[iNdEx:postIndex]) 2222 iNdEx = postIndex 2223 default: 2224 iNdEx = preIndex 2225 skippy, err := skipProvider(dAtA[iNdEx:]) 2226 if err != nil { 2227 return err 2228 } 2229 if skippy < 0 { 2230 return ErrInvalidLengthProvider 2231 } 2232 if (iNdEx + skippy) > l { 2233 return io.ErrUnexpectedEOF 2234 } 2235 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2236 iNdEx += skippy 2237 } 2238 } 2239 2240 if iNdEx > l { 2241 return io.ErrUnexpectedEOF 2242 } 2243 return nil 2244 } 2245 func (m *GenerateIntermediateCSRResponse) Unmarshal(dAtA []byte) error { 2246 l := len(dAtA) 2247 iNdEx := 0 2248 for iNdEx < l { 2249 preIndex := iNdEx 2250 var wire uint64 2251 for shift := uint(0); ; shift += 7 { 2252 if shift >= 64 { 2253 return ErrIntOverflowProvider 2254 } 2255 if iNdEx >= l { 2256 return io.ErrUnexpectedEOF 2257 } 2258 b := dAtA[iNdEx] 2259 iNdEx++ 2260 wire |= (uint64(b) & 0x7F) << shift 2261 if b < 0x80 { 2262 break 2263 } 2264 } 2265 fieldNum := int32(wire >> 3) 2266 wireType := int(wire & 0x7) 2267 if wireType == 4 { 2268 return fmt.Errorf("proto: GenerateIntermediateCSRResponse: wiretype end group for non-group") 2269 } 2270 if fieldNum <= 0 { 2271 return fmt.Errorf("proto: GenerateIntermediateCSRResponse: illegal tag %d (wire type %d)", fieldNum, wire) 2272 } 2273 switch fieldNum { 2274 case 1: 2275 if wireType != 2 { 2276 return fmt.Errorf("proto: wrong wireType = %d for field CsrPem", wireType) 2277 } 2278 var stringLen uint64 2279 for shift := uint(0); ; shift += 7 { 2280 if shift >= 64 { 2281 return ErrIntOverflowProvider 2282 } 2283 if iNdEx >= l { 2284 return io.ErrUnexpectedEOF 2285 } 2286 b := dAtA[iNdEx] 2287 iNdEx++ 2288 stringLen |= (uint64(b) & 0x7F) << shift 2289 if b < 0x80 { 2290 break 2291 } 2292 } 2293 intStringLen := int(stringLen) 2294 if intStringLen < 0 { 2295 return ErrInvalidLengthProvider 2296 } 2297 postIndex := iNdEx + intStringLen 2298 if postIndex > l { 2299 return io.ErrUnexpectedEOF 2300 } 2301 m.CsrPem = string(dAtA[iNdEx:postIndex]) 2302 iNdEx = postIndex 2303 default: 2304 iNdEx = preIndex 2305 skippy, err := skipProvider(dAtA[iNdEx:]) 2306 if err != nil { 2307 return err 2308 } 2309 if skippy < 0 { 2310 return ErrInvalidLengthProvider 2311 } 2312 if (iNdEx + skippy) > l { 2313 return io.ErrUnexpectedEOF 2314 } 2315 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2316 iNdEx += skippy 2317 } 2318 } 2319 2320 if iNdEx > l { 2321 return io.ErrUnexpectedEOF 2322 } 2323 return nil 2324 } 2325 func (m *ActiveIntermediateResponse) Unmarshal(dAtA []byte) error { 2326 l := len(dAtA) 2327 iNdEx := 0 2328 for iNdEx < l { 2329 preIndex := iNdEx 2330 var wire uint64 2331 for shift := uint(0); ; shift += 7 { 2332 if shift >= 64 { 2333 return ErrIntOverflowProvider 2334 } 2335 if iNdEx >= l { 2336 return io.ErrUnexpectedEOF 2337 } 2338 b := dAtA[iNdEx] 2339 iNdEx++ 2340 wire |= (uint64(b) & 0x7F) << shift 2341 if b < 0x80 { 2342 break 2343 } 2344 } 2345 fieldNum := int32(wire >> 3) 2346 wireType := int(wire & 0x7) 2347 if wireType == 4 { 2348 return fmt.Errorf("proto: ActiveIntermediateResponse: wiretype end group for non-group") 2349 } 2350 if fieldNum <= 0 { 2351 return fmt.Errorf("proto: ActiveIntermediateResponse: illegal tag %d (wire type %d)", fieldNum, wire) 2352 } 2353 switch fieldNum { 2354 case 1: 2355 if wireType != 2 { 2356 return fmt.Errorf("proto: wrong wireType = %d for field CrtPem", wireType) 2357 } 2358 var stringLen uint64 2359 for shift := uint(0); ; shift += 7 { 2360 if shift >= 64 { 2361 return ErrIntOverflowProvider 2362 } 2363 if iNdEx >= l { 2364 return io.ErrUnexpectedEOF 2365 } 2366 b := dAtA[iNdEx] 2367 iNdEx++ 2368 stringLen |= (uint64(b) & 0x7F) << shift 2369 if b < 0x80 { 2370 break 2371 } 2372 } 2373 intStringLen := int(stringLen) 2374 if intStringLen < 0 { 2375 return ErrInvalidLengthProvider 2376 } 2377 postIndex := iNdEx + intStringLen 2378 if postIndex > l { 2379 return io.ErrUnexpectedEOF 2380 } 2381 m.CrtPem = string(dAtA[iNdEx:postIndex]) 2382 iNdEx = postIndex 2383 default: 2384 iNdEx = preIndex 2385 skippy, err := skipProvider(dAtA[iNdEx:]) 2386 if err != nil { 2387 return err 2388 } 2389 if skippy < 0 { 2390 return ErrInvalidLengthProvider 2391 } 2392 if (iNdEx + skippy) > l { 2393 return io.ErrUnexpectedEOF 2394 } 2395 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2396 iNdEx += skippy 2397 } 2398 } 2399 2400 if iNdEx > l { 2401 return io.ErrUnexpectedEOF 2402 } 2403 return nil 2404 } 2405 func (m *GenerateIntermediateResponse) Unmarshal(dAtA []byte) error { 2406 l := len(dAtA) 2407 iNdEx := 0 2408 for iNdEx < l { 2409 preIndex := iNdEx 2410 var wire uint64 2411 for shift := uint(0); ; shift += 7 { 2412 if shift >= 64 { 2413 return ErrIntOverflowProvider 2414 } 2415 if iNdEx >= l { 2416 return io.ErrUnexpectedEOF 2417 } 2418 b := dAtA[iNdEx] 2419 iNdEx++ 2420 wire |= (uint64(b) & 0x7F) << shift 2421 if b < 0x80 { 2422 break 2423 } 2424 } 2425 fieldNum := int32(wire >> 3) 2426 wireType := int(wire & 0x7) 2427 if wireType == 4 { 2428 return fmt.Errorf("proto: GenerateIntermediateResponse: wiretype end group for non-group") 2429 } 2430 if fieldNum <= 0 { 2431 return fmt.Errorf("proto: GenerateIntermediateResponse: illegal tag %d (wire type %d)", fieldNum, wire) 2432 } 2433 switch fieldNum { 2434 case 1: 2435 if wireType != 2 { 2436 return fmt.Errorf("proto: wrong wireType = %d for field CrtPem", wireType) 2437 } 2438 var stringLen uint64 2439 for shift := uint(0); ; shift += 7 { 2440 if shift >= 64 { 2441 return ErrIntOverflowProvider 2442 } 2443 if iNdEx >= l { 2444 return io.ErrUnexpectedEOF 2445 } 2446 b := dAtA[iNdEx] 2447 iNdEx++ 2448 stringLen |= (uint64(b) & 0x7F) << shift 2449 if b < 0x80 { 2450 break 2451 } 2452 } 2453 intStringLen := int(stringLen) 2454 if intStringLen < 0 { 2455 return ErrInvalidLengthProvider 2456 } 2457 postIndex := iNdEx + intStringLen 2458 if postIndex > l { 2459 return io.ErrUnexpectedEOF 2460 } 2461 m.CrtPem = string(dAtA[iNdEx:postIndex]) 2462 iNdEx = postIndex 2463 default: 2464 iNdEx = preIndex 2465 skippy, err := skipProvider(dAtA[iNdEx:]) 2466 if err != nil { 2467 return err 2468 } 2469 if skippy < 0 { 2470 return ErrInvalidLengthProvider 2471 } 2472 if (iNdEx + skippy) > l { 2473 return io.ErrUnexpectedEOF 2474 } 2475 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2476 iNdEx += skippy 2477 } 2478 } 2479 2480 if iNdEx > l { 2481 return io.ErrUnexpectedEOF 2482 } 2483 return nil 2484 } 2485 func (m *SignResponse) Unmarshal(dAtA []byte) error { 2486 l := len(dAtA) 2487 iNdEx := 0 2488 for iNdEx < l { 2489 preIndex := iNdEx 2490 var wire uint64 2491 for shift := uint(0); ; shift += 7 { 2492 if shift >= 64 { 2493 return ErrIntOverflowProvider 2494 } 2495 if iNdEx >= l { 2496 return io.ErrUnexpectedEOF 2497 } 2498 b := dAtA[iNdEx] 2499 iNdEx++ 2500 wire |= (uint64(b) & 0x7F) << shift 2501 if b < 0x80 { 2502 break 2503 } 2504 } 2505 fieldNum := int32(wire >> 3) 2506 wireType := int(wire & 0x7) 2507 if wireType == 4 { 2508 return fmt.Errorf("proto: SignResponse: wiretype end group for non-group") 2509 } 2510 if fieldNum <= 0 { 2511 return fmt.Errorf("proto: SignResponse: illegal tag %d (wire type %d)", fieldNum, wire) 2512 } 2513 switch fieldNum { 2514 case 1: 2515 if wireType != 2 { 2516 return fmt.Errorf("proto: wrong wireType = %d for field CrtPem", wireType) 2517 } 2518 var stringLen uint64 2519 for shift := uint(0); ; shift += 7 { 2520 if shift >= 64 { 2521 return ErrIntOverflowProvider 2522 } 2523 if iNdEx >= l { 2524 return io.ErrUnexpectedEOF 2525 } 2526 b := dAtA[iNdEx] 2527 iNdEx++ 2528 stringLen |= (uint64(b) & 0x7F) << shift 2529 if b < 0x80 { 2530 break 2531 } 2532 } 2533 intStringLen := int(stringLen) 2534 if intStringLen < 0 { 2535 return ErrInvalidLengthProvider 2536 } 2537 postIndex := iNdEx + intStringLen 2538 if postIndex > l { 2539 return io.ErrUnexpectedEOF 2540 } 2541 m.CrtPem = string(dAtA[iNdEx:postIndex]) 2542 iNdEx = postIndex 2543 default: 2544 iNdEx = preIndex 2545 skippy, err := skipProvider(dAtA[iNdEx:]) 2546 if err != nil { 2547 return err 2548 } 2549 if skippy < 0 { 2550 return ErrInvalidLengthProvider 2551 } 2552 if (iNdEx + skippy) > l { 2553 return io.ErrUnexpectedEOF 2554 } 2555 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2556 iNdEx += skippy 2557 } 2558 } 2559 2560 if iNdEx > l { 2561 return io.ErrUnexpectedEOF 2562 } 2563 return nil 2564 } 2565 func (m *SignIntermediateResponse) Unmarshal(dAtA []byte) error { 2566 l := len(dAtA) 2567 iNdEx := 0 2568 for iNdEx < l { 2569 preIndex := iNdEx 2570 var wire uint64 2571 for shift := uint(0); ; shift += 7 { 2572 if shift >= 64 { 2573 return ErrIntOverflowProvider 2574 } 2575 if iNdEx >= l { 2576 return io.ErrUnexpectedEOF 2577 } 2578 b := dAtA[iNdEx] 2579 iNdEx++ 2580 wire |= (uint64(b) & 0x7F) << shift 2581 if b < 0x80 { 2582 break 2583 } 2584 } 2585 fieldNum := int32(wire >> 3) 2586 wireType := int(wire & 0x7) 2587 if wireType == 4 { 2588 return fmt.Errorf("proto: SignIntermediateResponse: wiretype end group for non-group") 2589 } 2590 if fieldNum <= 0 { 2591 return fmt.Errorf("proto: SignIntermediateResponse: illegal tag %d (wire type %d)", fieldNum, wire) 2592 } 2593 switch fieldNum { 2594 case 1: 2595 if wireType != 2 { 2596 return fmt.Errorf("proto: wrong wireType = %d for field CrtPem", wireType) 2597 } 2598 var stringLen uint64 2599 for shift := uint(0); ; shift += 7 { 2600 if shift >= 64 { 2601 return ErrIntOverflowProvider 2602 } 2603 if iNdEx >= l { 2604 return io.ErrUnexpectedEOF 2605 } 2606 b := dAtA[iNdEx] 2607 iNdEx++ 2608 stringLen |= (uint64(b) & 0x7F) << shift 2609 if b < 0x80 { 2610 break 2611 } 2612 } 2613 intStringLen := int(stringLen) 2614 if intStringLen < 0 { 2615 return ErrInvalidLengthProvider 2616 } 2617 postIndex := iNdEx + intStringLen 2618 if postIndex > l { 2619 return io.ErrUnexpectedEOF 2620 } 2621 m.CrtPem = string(dAtA[iNdEx:postIndex]) 2622 iNdEx = postIndex 2623 default: 2624 iNdEx = preIndex 2625 skippy, err := skipProvider(dAtA[iNdEx:]) 2626 if err != nil { 2627 return err 2628 } 2629 if skippy < 0 { 2630 return ErrInvalidLengthProvider 2631 } 2632 if (iNdEx + skippy) > l { 2633 return io.ErrUnexpectedEOF 2634 } 2635 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2636 iNdEx += skippy 2637 } 2638 } 2639 2640 if iNdEx > l { 2641 return io.ErrUnexpectedEOF 2642 } 2643 return nil 2644 } 2645 func (m *CrossSignCAResponse) Unmarshal(dAtA []byte) error { 2646 l := len(dAtA) 2647 iNdEx := 0 2648 for iNdEx < l { 2649 preIndex := iNdEx 2650 var wire uint64 2651 for shift := uint(0); ; shift += 7 { 2652 if shift >= 64 { 2653 return ErrIntOverflowProvider 2654 } 2655 if iNdEx >= l { 2656 return io.ErrUnexpectedEOF 2657 } 2658 b := dAtA[iNdEx] 2659 iNdEx++ 2660 wire |= (uint64(b) & 0x7F) << shift 2661 if b < 0x80 { 2662 break 2663 } 2664 } 2665 fieldNum := int32(wire >> 3) 2666 wireType := int(wire & 0x7) 2667 if wireType == 4 { 2668 return fmt.Errorf("proto: CrossSignCAResponse: wiretype end group for non-group") 2669 } 2670 if fieldNum <= 0 { 2671 return fmt.Errorf("proto: CrossSignCAResponse: illegal tag %d (wire type %d)", fieldNum, wire) 2672 } 2673 switch fieldNum { 2674 case 1: 2675 if wireType != 2 { 2676 return fmt.Errorf("proto: wrong wireType = %d for field CrtPem", wireType) 2677 } 2678 var stringLen uint64 2679 for shift := uint(0); ; shift += 7 { 2680 if shift >= 64 { 2681 return ErrIntOverflowProvider 2682 } 2683 if iNdEx >= l { 2684 return io.ErrUnexpectedEOF 2685 } 2686 b := dAtA[iNdEx] 2687 iNdEx++ 2688 stringLen |= (uint64(b) & 0x7F) << shift 2689 if b < 0x80 { 2690 break 2691 } 2692 } 2693 intStringLen := int(stringLen) 2694 if intStringLen < 0 { 2695 return ErrInvalidLengthProvider 2696 } 2697 postIndex := iNdEx + intStringLen 2698 if postIndex > l { 2699 return io.ErrUnexpectedEOF 2700 } 2701 m.CrtPem = string(dAtA[iNdEx:postIndex]) 2702 iNdEx = postIndex 2703 default: 2704 iNdEx = preIndex 2705 skippy, err := skipProvider(dAtA[iNdEx:]) 2706 if err != nil { 2707 return err 2708 } 2709 if skippy < 0 { 2710 return ErrInvalidLengthProvider 2711 } 2712 if (iNdEx + skippy) > l { 2713 return io.ErrUnexpectedEOF 2714 } 2715 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2716 iNdEx += skippy 2717 } 2718 } 2719 2720 if iNdEx > l { 2721 return io.ErrUnexpectedEOF 2722 } 2723 return nil 2724 } 2725 func (m *Empty) Unmarshal(dAtA []byte) error { 2726 l := len(dAtA) 2727 iNdEx := 0 2728 for iNdEx < l { 2729 preIndex := iNdEx 2730 var wire uint64 2731 for shift := uint(0); ; shift += 7 { 2732 if shift >= 64 { 2733 return ErrIntOverflowProvider 2734 } 2735 if iNdEx >= l { 2736 return io.ErrUnexpectedEOF 2737 } 2738 b := dAtA[iNdEx] 2739 iNdEx++ 2740 wire |= (uint64(b) & 0x7F) << shift 2741 if b < 0x80 { 2742 break 2743 } 2744 } 2745 fieldNum := int32(wire >> 3) 2746 wireType := int(wire & 0x7) 2747 if wireType == 4 { 2748 return fmt.Errorf("proto: Empty: wiretype end group for non-group") 2749 } 2750 if fieldNum <= 0 { 2751 return fmt.Errorf("proto: Empty: illegal tag %d (wire type %d)", fieldNum, wire) 2752 } 2753 switch fieldNum { 2754 default: 2755 iNdEx = preIndex 2756 skippy, err := skipProvider(dAtA[iNdEx:]) 2757 if err != nil { 2758 return err 2759 } 2760 if skippy < 0 { 2761 return ErrInvalidLengthProvider 2762 } 2763 if (iNdEx + skippy) > l { 2764 return io.ErrUnexpectedEOF 2765 } 2766 m.XXX_unrecognized = append(m.XXX_unrecognized, dAtA[iNdEx:iNdEx+skippy]...) 2767 iNdEx += skippy 2768 } 2769 } 2770 2771 if iNdEx > l { 2772 return io.ErrUnexpectedEOF 2773 } 2774 return nil 2775 } 2776 func skipProvider(dAtA []byte) (n int, err error) { 2777 l := len(dAtA) 2778 iNdEx := 0 2779 for iNdEx < l { 2780 var wire uint64 2781 for shift := uint(0); ; shift += 7 { 2782 if shift >= 64 { 2783 return 0, ErrIntOverflowProvider 2784 } 2785 if iNdEx >= l { 2786 return 0, io.ErrUnexpectedEOF 2787 } 2788 b := dAtA[iNdEx] 2789 iNdEx++ 2790 wire |= (uint64(b) & 0x7F) << shift 2791 if b < 0x80 { 2792 break 2793 } 2794 } 2795 wireType := int(wire & 0x7) 2796 switch wireType { 2797 case 0: 2798 for shift := uint(0); ; shift += 7 { 2799 if shift >= 64 { 2800 return 0, ErrIntOverflowProvider 2801 } 2802 if iNdEx >= l { 2803 return 0, io.ErrUnexpectedEOF 2804 } 2805 iNdEx++ 2806 if dAtA[iNdEx-1] < 0x80 { 2807 break 2808 } 2809 } 2810 return iNdEx, nil 2811 case 1: 2812 iNdEx += 8 2813 return iNdEx, nil 2814 case 2: 2815 var length int 2816 for shift := uint(0); ; shift += 7 { 2817 if shift >= 64 { 2818 return 0, ErrIntOverflowProvider 2819 } 2820 if iNdEx >= l { 2821 return 0, io.ErrUnexpectedEOF 2822 } 2823 b := dAtA[iNdEx] 2824 iNdEx++ 2825 length |= (int(b) & 0x7F) << shift 2826 if b < 0x80 { 2827 break 2828 } 2829 } 2830 iNdEx += length 2831 if length < 0 { 2832 return 0, ErrInvalidLengthProvider 2833 } 2834 return iNdEx, nil 2835 case 3: 2836 for { 2837 var innerWire uint64 2838 var start int = iNdEx 2839 for shift := uint(0); ; shift += 7 { 2840 if shift >= 64 { 2841 return 0, ErrIntOverflowProvider 2842 } 2843 if iNdEx >= l { 2844 return 0, io.ErrUnexpectedEOF 2845 } 2846 b := dAtA[iNdEx] 2847 iNdEx++ 2848 innerWire |= (uint64(b) & 0x7F) << shift 2849 if b < 0x80 { 2850 break 2851 } 2852 } 2853 innerWireType := int(innerWire & 0x7) 2854 if innerWireType == 4 { 2855 break 2856 } 2857 next, err := skipProvider(dAtA[start:]) 2858 if err != nil { 2859 return 0, err 2860 } 2861 iNdEx = start + next 2862 } 2863 return iNdEx, nil 2864 case 4: 2865 return iNdEx, nil 2866 case 5: 2867 iNdEx += 4 2868 return iNdEx, nil 2869 default: 2870 return 0, fmt.Errorf("proto: illegal wireType %d", wireType) 2871 } 2872 } 2873 panic("unreachable") 2874 } 2875 2876 var ( 2877 ErrInvalidLengthProvider = fmt.Errorf("proto: negative length found during unmarshaling") 2878 ErrIntOverflowProvider = fmt.Errorf("proto: integer overflow") 2879 ) 2880 2881 func init() { 2882 proto.RegisterFile("agent/connect/ca/plugin/provider.proto", fileDescriptor_provider_8ff2d2670790989c) 2883 } 2884 2885 var fileDescriptor_provider_8ff2d2670790989c = []byte{ 2886 // 566 bytes of a gzipped FileDescriptorProto 2887 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x54, 0xdf, 0x6e, 0xd3, 0x3e, 2888 0x18, 0xfd, 0xa5, 0xfb, 0xad, 0x5d, 0xbf, 0x15, 0xad, 0xf2, 0xa6, 0xb5, 0x14, 0x68, 0xab, 0x08, 2889 0xad, 0x45, 0x40, 0x23, 0x28, 0x68, 0x12, 0x57, 0x94, 0x68, 0x4c, 0x13, 0x37, 0x23, 0x15, 0x37, 2890 0x5c, 0x50, 0xa5, 0xae, 0x49, 0x2d, 0x35, 0x71, 0xb0, 0x9d, 0x49, 0xbc, 0x09, 0x6f, 0x04, 0x97, 2891 0x3c, 0x02, 0x2a, 0x2f, 0x82, 0x9c, 0x26, 0x59, 0x92, 0xa6, 0xcb, 0x5d, 0xfc, 0xe5, 0x9c, 0xf3, 2892 0xfd, 0x3b, 0x36, 0x9c, 0xd9, 0x0e, 0xf1, 0xa4, 0x81, 0x99, 0xe7, 0x11, 0x2c, 0x0d, 0x6c, 0x1b, 2893 0xfe, 0x2a, 0x70, 0xa8, 0x67, 0xf8, 0x9c, 0xdd, 0xd0, 0x05, 0xe1, 0x23, 0x9f, 0x33, 0xc9, 0x50, 2894 0x75, 0x13, 0xd6, 0xe7, 0xd0, 0x34, 0x99, 0xf7, 0x95, 0x3a, 0x01, 0x27, 0x16, 0xf9, 0x16, 0x10, 2895 0x21, 0xd1, 0x23, 0x00, 0xbc, 0x0a, 0x84, 0x24, 0x7c, 0x46, 0x17, 0x6d, 0xad, 0xaf, 0x0d, 0xeb, 2896 0x56, 0x3d, 0x8a, 0x5c, 0x2d, 0x50, 0x0b, 0x6a, 0x54, 0xcc, 0x38, 0x63, 0xb2, 0x5d, 0xe9, 0x6b, 2897 0xc3, 0x03, 0xab, 0x4a, 0x85, 0xc5, 0x98, 0x44, 0xa7, 0x50, 0xc5, 0xa1, 0x56, 0x7b, 0xaf, 0xaf, 2898 0x0d, 0x1b, 0x56, 0x74, 0xd2, 0xbf, 0xc0, 0xe9, 0x94, 0xc8, 0x2b, 0x4f, 0x12, 0xee, 0x92, 0x05, 2899 0xb5, 0x65, 0x92, 0xe9, 0x09, 0x34, 0x69, 0x2a, 0x3c, 0xf3, 0x89, 0x1b, 0xe5, 0x3b, 0x4a, 0xc7, 2900 0xaf, 0x89, 0x8b, 0xee, 0xc3, 0x81, 0x4a, 0x19, 0x42, 0x2a, 0x21, 0xa4, 0xa6, 0xce, 0xd7, 0xc4, 2901 0xd5, 0x7b, 0x70, 0x38, 0xa5, 0x8e, 0x17, 0x8b, 0x36, 0x61, 0x0f, 0x0b, 0x1e, 0xea, 0x34, 0x2c, 2902 0xf5, 0xa9, 0x3f, 0x85, 0x96, 0x02, 0x14, 0x55, 0xb0, 0x0d, 0x3e, 0x03, 0x64, 0x72, 0x26, 0x84, 2903 0x62, 0x98, 0x93, 0x34, 0x8e, 0xcb, 0x04, 0xc7, 0xa5, 0xfe, 0x1c, 0xd0, 0x04, 0x4b, 0x7a, 0x43, 2904 0x54, 0xef, 0x16, 0x11, 0x3e, 0xf3, 0x04, 0x51, 0xc3, 0xc1, 0x5c, 0xa6, 0x1a, 0xa9, 0x62, 0x1e, 2905 0x16, 0xf9, 0x06, 0x7a, 0x97, 0xc4, 0x23, 0xdc, 0x96, 0x24, 0x5d, 0x87, 0x39, 0xb5, 0x32, 0x5c, 2906 0xc1, 0x33, 0x5c, 0xc1, 0x15, 0xf7, 0x35, 0x74, 0x36, 0xa9, 0xb2, 0x1d, 0x94, 0xa5, 0x3c, 0x87, 2907 0x87, 0x45, 0x29, 0xcb, 0x89, 0x03, 0x68, 0x6c, 0x06, 0x5a, 0x06, 0x1c, 0x43, 0x7b, 0x7b, 0xb0, 2908 0x65, 0xa4, 0x11, 0x1c, 0x67, 0x06, 0x5c, 0x86, 0xaf, 0xc1, 0xfe, 0x85, 0xeb, 0xcb, 0xef, 0x2f, 2909 0x7f, 0xee, 0x43, 0xc5, 0x9c, 0xa0, 0x57, 0x50, 0x4f, 0x2c, 0x8b, 0xda, 0xa3, 0x8d, 0x91, 0x47, 2910 0x79, 0x17, 0x77, 0xee, 0xc5, 0x7f, 0x42, 0x32, 0x7a, 0x06, 0x8d, 0x78, 0x18, 0xa1, 0x59, 0xb3, 2911 0xbf, 0xf3, 0xe8, 0x73, 0x80, 0xdb, 0xe5, 0xe6, 0xb1, 0x9d, 0xf8, 0x58, 0xb0, 0xff, 0x8f, 0xd0, 2912 0xda, 0xb1, 0xe6, 0xbc, 0xca, 0x20, 0x3e, 0x96, 0xd9, 0xe2, 0x2d, 0x1c, 0xe5, 0xae, 0x0f, 0xea, 2913 0xc6, 0xdc, 0xe2, 0x7b, 0x95, 0xef, 0xe6, 0x32, 0xb6, 0x6a, 0x46, 0x24, 0x57, 0x8f, 0x9e, 0xed, 2914 0xaa, 0x70, 0xa7, 0x1f, 0xe0, 0xa4, 0xa8, 0xda, 0xbc, 0xd4, 0xe3, 0xbb, 0x5a, 0x4b, 0xc4, 0x5e, 2915 0xc0, 0xff, 0xca, 0x02, 0xe8, 0x38, 0x69, 0xe6, 0xf6, 0x12, 0x77, 0x4e, 0xb2, 0xc1, 0x88, 0xf2, 2916 0x09, 0x9a, 0x79, 0xbf, 0xa1, 0x5e, 0x1a, 0x59, 0x34, 0x8c, 0xfe, 0x6e, 0x40, 0x24, 0xfb, 0x1e, 2917 0x0e, 0x53, 0x8e, 0x44, 0xc9, 0x7e, 0xb7, 0xdf, 0x81, 0xce, 0x83, 0xc2, 0x7f, 0x91, 0xce, 0x00, 2918 0x6a, 0xe6, 0x8a, 0xd8, 0x5e, 0xe0, 0xdf, 0x6d, 0xaf, 0x77, 0x17, 0xbf, 0xd6, 0x5d, 0xed, 0xf7, 2919 0xba, 0xab, 0xfd, 0x59, 0x77, 0xb5, 0x1f, 0x7f, 0xbb, 0xff, 0x7d, 0x1e, 0x3b, 0x54, 0x2e, 0x83, 2920 0xf9, 0x08, 0x33, 0xd7, 0x58, 0xda, 0x62, 0x49, 0x31, 0xe3, 0xbe, 0x7a, 0xc6, 0x45, 0xb0, 0x32, 2921 0x76, 0xbc, 0xe9, 0xf3, 0x6a, 0xf8, 0x96, 0x8f, 0xff, 0x05, 0x00, 0x00, 0xff, 0xff, 0x7b, 0x20, 2922 0xb4, 0xe4, 0xf5, 0x05, 0x00, 0x00, 2923 }