600 lines
24 KiB
Go
600 lines
24 KiB
Go
// Code generated by protoc-gen-go.
|
|
// source: ra/proto/ra.proto
|
|
// DO NOT EDIT!
|
|
|
|
/*
|
|
Package proto is a generated protocol buffer package.
|
|
|
|
It is generated from these files:
|
|
ra/proto/ra.proto
|
|
|
|
It has these top-level messages:
|
|
NewAuthorizationRequest
|
|
NewCertificateRequest
|
|
UpdateRegistrationRequest
|
|
UpdateAuthorizationRequest
|
|
RevokeCertificateWithRegRequest
|
|
AdministrativelyRevokeCertificateRequest
|
|
*/
|
|
package proto
|
|
|
|
import proto1 "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
import core "github.com/letsencrypt/boulder/core/proto"
|
|
|
|
import (
|
|
context "golang.org/x/net/context"
|
|
grpc "google.golang.org/grpc"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto1.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto1.ProtoPackageIsVersion2 // please upgrade the proto package
|
|
|
|
type NewAuthorizationRequest struct {
|
|
Authz *core.Authorization `protobuf:"bytes,1,opt,name=authz" json:"authz,omitempty"`
|
|
RegID *int64 `protobuf:"varint,2,opt,name=regID" json:"regID,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *NewAuthorizationRequest) Reset() { *m = NewAuthorizationRequest{} }
|
|
func (m *NewAuthorizationRequest) String() string { return proto1.CompactTextString(m) }
|
|
func (*NewAuthorizationRequest) ProtoMessage() {}
|
|
func (*NewAuthorizationRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
|
|
|
func (m *NewAuthorizationRequest) GetAuthz() *core.Authorization {
|
|
if m != nil {
|
|
return m.Authz
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *NewAuthorizationRequest) GetRegID() int64 {
|
|
if m != nil && m.RegID != nil {
|
|
return *m.RegID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type NewCertificateRequest struct {
|
|
Csr []byte `protobuf:"bytes,1,opt,name=csr" json:"csr,omitempty"`
|
|
RegID *int64 `protobuf:"varint,2,opt,name=regID" json:"regID,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *NewCertificateRequest) Reset() { *m = NewCertificateRequest{} }
|
|
func (m *NewCertificateRequest) String() string { return proto1.CompactTextString(m) }
|
|
func (*NewCertificateRequest) ProtoMessage() {}
|
|
func (*NewCertificateRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
|
|
|
func (m *NewCertificateRequest) GetCsr() []byte {
|
|
if m != nil {
|
|
return m.Csr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *NewCertificateRequest) GetRegID() int64 {
|
|
if m != nil && m.RegID != nil {
|
|
return *m.RegID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type UpdateRegistrationRequest struct {
|
|
Base *core.Registration `protobuf:"bytes,1,opt,name=base" json:"base,omitempty"`
|
|
Update *core.Registration `protobuf:"bytes,2,opt,name=update" json:"update,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *UpdateRegistrationRequest) Reset() { *m = UpdateRegistrationRequest{} }
|
|
func (m *UpdateRegistrationRequest) String() string { return proto1.CompactTextString(m) }
|
|
func (*UpdateRegistrationRequest) ProtoMessage() {}
|
|
func (*UpdateRegistrationRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
|
|
|
func (m *UpdateRegistrationRequest) GetBase() *core.Registration {
|
|
if m != nil {
|
|
return m.Base
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *UpdateRegistrationRequest) GetUpdate() *core.Registration {
|
|
if m != nil {
|
|
return m.Update
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type UpdateAuthorizationRequest struct {
|
|
Authz *core.Authorization `protobuf:"bytes,1,opt,name=authz" json:"authz,omitempty"`
|
|
ChallengeIndex *int64 `protobuf:"varint,2,opt,name=challengeIndex" json:"challengeIndex,omitempty"`
|
|
Response *core.Challenge `protobuf:"bytes,3,opt,name=response" json:"response,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *UpdateAuthorizationRequest) Reset() { *m = UpdateAuthorizationRequest{} }
|
|
func (m *UpdateAuthorizationRequest) String() string { return proto1.CompactTextString(m) }
|
|
func (*UpdateAuthorizationRequest) ProtoMessage() {}
|
|
func (*UpdateAuthorizationRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
|
|
|
|
func (m *UpdateAuthorizationRequest) GetAuthz() *core.Authorization {
|
|
if m != nil {
|
|
return m.Authz
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *UpdateAuthorizationRequest) GetChallengeIndex() int64 {
|
|
if m != nil && m.ChallengeIndex != nil {
|
|
return *m.ChallengeIndex
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *UpdateAuthorizationRequest) GetResponse() *core.Challenge {
|
|
if m != nil {
|
|
return m.Response
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type RevokeCertificateWithRegRequest struct {
|
|
Cert []byte `protobuf:"bytes,1,opt,name=cert" json:"cert,omitempty"`
|
|
Code *int64 `protobuf:"varint,2,opt,name=code" json:"code,omitempty"`
|
|
RegID *int64 `protobuf:"varint,3,opt,name=regID" json:"regID,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *RevokeCertificateWithRegRequest) Reset() { *m = RevokeCertificateWithRegRequest{} }
|
|
func (m *RevokeCertificateWithRegRequest) String() string { return proto1.CompactTextString(m) }
|
|
func (*RevokeCertificateWithRegRequest) ProtoMessage() {}
|
|
func (*RevokeCertificateWithRegRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
|
|
|
|
func (m *RevokeCertificateWithRegRequest) GetCert() []byte {
|
|
if m != nil {
|
|
return m.Cert
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *RevokeCertificateWithRegRequest) GetCode() int64 {
|
|
if m != nil && m.Code != nil {
|
|
return *m.Code
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *RevokeCertificateWithRegRequest) GetRegID() int64 {
|
|
if m != nil && m.RegID != nil {
|
|
return *m.RegID
|
|
}
|
|
return 0
|
|
}
|
|
|
|
type AdministrativelyRevokeCertificateRequest struct {
|
|
Cert []byte `protobuf:"bytes,1,opt,name=cert" json:"cert,omitempty"`
|
|
Code *int64 `protobuf:"varint,2,opt,name=code" json:"code,omitempty"`
|
|
AdminName *string `protobuf:"bytes,3,opt,name=adminName" json:"adminName,omitempty"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
}
|
|
|
|
func (m *AdministrativelyRevokeCertificateRequest) Reset() {
|
|
*m = AdministrativelyRevokeCertificateRequest{}
|
|
}
|
|
func (m *AdministrativelyRevokeCertificateRequest) String() string { return proto1.CompactTextString(m) }
|
|
func (*AdministrativelyRevokeCertificateRequest) ProtoMessage() {}
|
|
func (*AdministrativelyRevokeCertificateRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor0, []int{5}
|
|
}
|
|
|
|
func (m *AdministrativelyRevokeCertificateRequest) GetCert() []byte {
|
|
if m != nil {
|
|
return m.Cert
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *AdministrativelyRevokeCertificateRequest) GetCode() int64 {
|
|
if m != nil && m.Code != nil {
|
|
return *m.Code
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *AdministrativelyRevokeCertificateRequest) GetAdminName() string {
|
|
if m != nil && m.AdminName != nil {
|
|
return *m.AdminName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func init() {
|
|
proto1.RegisterType((*NewAuthorizationRequest)(nil), "ra.NewAuthorizationRequest")
|
|
proto1.RegisterType((*NewCertificateRequest)(nil), "ra.NewCertificateRequest")
|
|
proto1.RegisterType((*UpdateRegistrationRequest)(nil), "ra.UpdateRegistrationRequest")
|
|
proto1.RegisterType((*UpdateAuthorizationRequest)(nil), "ra.UpdateAuthorizationRequest")
|
|
proto1.RegisterType((*RevokeCertificateWithRegRequest)(nil), "ra.RevokeCertificateWithRegRequest")
|
|
proto1.RegisterType((*AdministrativelyRevokeCertificateRequest)(nil), "ra.AdministrativelyRevokeCertificateRequest")
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
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
|
|
|
|
// Client API for RegistrationAuthority service
|
|
|
|
type RegistrationAuthorityClient interface {
|
|
NewRegistration(ctx context.Context, in *core.Registration, opts ...grpc.CallOption) (*core.Registration, error)
|
|
NewAuthorization(ctx context.Context, in *NewAuthorizationRequest, opts ...grpc.CallOption) (*core.Authorization, error)
|
|
NewCertificate(ctx context.Context, in *NewCertificateRequest, opts ...grpc.CallOption) (*core.Certificate, error)
|
|
UpdateRegistration(ctx context.Context, in *UpdateRegistrationRequest, opts ...grpc.CallOption) (*core.Registration, error)
|
|
UpdateAuthorization(ctx context.Context, in *UpdateAuthorizationRequest, opts ...grpc.CallOption) (*core.Authorization, error)
|
|
RevokeCertificateWithReg(ctx context.Context, in *RevokeCertificateWithRegRequest, opts ...grpc.CallOption) (*core.Empty, error)
|
|
DeactivateRegistration(ctx context.Context, in *core.Registration, opts ...grpc.CallOption) (*core.Empty, error)
|
|
DeactivateAuthorization(ctx context.Context, in *core.Authorization, opts ...grpc.CallOption) (*core.Empty, error)
|
|
AdministrativelyRevokeCertificate(ctx context.Context, in *AdministrativelyRevokeCertificateRequest, opts ...grpc.CallOption) (*core.Empty, error)
|
|
}
|
|
|
|
type registrationAuthorityClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewRegistrationAuthorityClient(cc *grpc.ClientConn) RegistrationAuthorityClient {
|
|
return ®istrationAuthorityClient{cc}
|
|
}
|
|
|
|
func (c *registrationAuthorityClient) NewRegistration(ctx context.Context, in *core.Registration, opts ...grpc.CallOption) (*core.Registration, error) {
|
|
out := new(core.Registration)
|
|
err := grpc.Invoke(ctx, "/ra.RegistrationAuthority/NewRegistration", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *registrationAuthorityClient) NewAuthorization(ctx context.Context, in *NewAuthorizationRequest, opts ...grpc.CallOption) (*core.Authorization, error) {
|
|
out := new(core.Authorization)
|
|
err := grpc.Invoke(ctx, "/ra.RegistrationAuthority/NewAuthorization", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *registrationAuthorityClient) NewCertificate(ctx context.Context, in *NewCertificateRequest, opts ...grpc.CallOption) (*core.Certificate, error) {
|
|
out := new(core.Certificate)
|
|
err := grpc.Invoke(ctx, "/ra.RegistrationAuthority/NewCertificate", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *registrationAuthorityClient) UpdateRegistration(ctx context.Context, in *UpdateRegistrationRequest, opts ...grpc.CallOption) (*core.Registration, error) {
|
|
out := new(core.Registration)
|
|
err := grpc.Invoke(ctx, "/ra.RegistrationAuthority/UpdateRegistration", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *registrationAuthorityClient) UpdateAuthorization(ctx context.Context, in *UpdateAuthorizationRequest, opts ...grpc.CallOption) (*core.Authorization, error) {
|
|
out := new(core.Authorization)
|
|
err := grpc.Invoke(ctx, "/ra.RegistrationAuthority/UpdateAuthorization", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *registrationAuthorityClient) RevokeCertificateWithReg(ctx context.Context, in *RevokeCertificateWithRegRequest, opts ...grpc.CallOption) (*core.Empty, error) {
|
|
out := new(core.Empty)
|
|
err := grpc.Invoke(ctx, "/ra.RegistrationAuthority/RevokeCertificateWithReg", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *registrationAuthorityClient) DeactivateRegistration(ctx context.Context, in *core.Registration, opts ...grpc.CallOption) (*core.Empty, error) {
|
|
out := new(core.Empty)
|
|
err := grpc.Invoke(ctx, "/ra.RegistrationAuthority/DeactivateRegistration", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *registrationAuthorityClient) DeactivateAuthorization(ctx context.Context, in *core.Authorization, opts ...grpc.CallOption) (*core.Empty, error) {
|
|
out := new(core.Empty)
|
|
err := grpc.Invoke(ctx, "/ra.RegistrationAuthority/DeactivateAuthorization", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *registrationAuthorityClient) AdministrativelyRevokeCertificate(ctx context.Context, in *AdministrativelyRevokeCertificateRequest, opts ...grpc.CallOption) (*core.Empty, error) {
|
|
out := new(core.Empty)
|
|
err := grpc.Invoke(ctx, "/ra.RegistrationAuthority/AdministrativelyRevokeCertificate", in, out, c.cc, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// Server API for RegistrationAuthority service
|
|
|
|
type RegistrationAuthorityServer interface {
|
|
NewRegistration(context.Context, *core.Registration) (*core.Registration, error)
|
|
NewAuthorization(context.Context, *NewAuthorizationRequest) (*core.Authorization, error)
|
|
NewCertificate(context.Context, *NewCertificateRequest) (*core.Certificate, error)
|
|
UpdateRegistration(context.Context, *UpdateRegistrationRequest) (*core.Registration, error)
|
|
UpdateAuthorization(context.Context, *UpdateAuthorizationRequest) (*core.Authorization, error)
|
|
RevokeCertificateWithReg(context.Context, *RevokeCertificateWithRegRequest) (*core.Empty, error)
|
|
DeactivateRegistration(context.Context, *core.Registration) (*core.Empty, error)
|
|
DeactivateAuthorization(context.Context, *core.Authorization) (*core.Empty, error)
|
|
AdministrativelyRevokeCertificate(context.Context, *AdministrativelyRevokeCertificateRequest) (*core.Empty, error)
|
|
}
|
|
|
|
func RegisterRegistrationAuthorityServer(s *grpc.Server, srv RegistrationAuthorityServer) {
|
|
s.RegisterService(&_RegistrationAuthority_serviceDesc, srv)
|
|
}
|
|
|
|
func _RegistrationAuthority_NewRegistration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(core.Registration)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RegistrationAuthorityServer).NewRegistration(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ra.RegistrationAuthority/NewRegistration",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RegistrationAuthorityServer).NewRegistration(ctx, req.(*core.Registration))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _RegistrationAuthority_NewAuthorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(NewAuthorizationRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RegistrationAuthorityServer).NewAuthorization(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ra.RegistrationAuthority/NewAuthorization",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RegistrationAuthorityServer).NewAuthorization(ctx, req.(*NewAuthorizationRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _RegistrationAuthority_NewCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(NewCertificateRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RegistrationAuthorityServer).NewCertificate(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ra.RegistrationAuthority/NewCertificate",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RegistrationAuthorityServer).NewCertificate(ctx, req.(*NewCertificateRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _RegistrationAuthority_UpdateRegistration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UpdateRegistrationRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RegistrationAuthorityServer).UpdateRegistration(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ra.RegistrationAuthority/UpdateRegistration",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RegistrationAuthorityServer).UpdateRegistration(ctx, req.(*UpdateRegistrationRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _RegistrationAuthority_UpdateAuthorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UpdateAuthorizationRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RegistrationAuthorityServer).UpdateAuthorization(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ra.RegistrationAuthority/UpdateAuthorization",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RegistrationAuthorityServer).UpdateAuthorization(ctx, req.(*UpdateAuthorizationRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _RegistrationAuthority_RevokeCertificateWithReg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(RevokeCertificateWithRegRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RegistrationAuthorityServer).RevokeCertificateWithReg(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ra.RegistrationAuthority/RevokeCertificateWithReg",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RegistrationAuthorityServer).RevokeCertificateWithReg(ctx, req.(*RevokeCertificateWithRegRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _RegistrationAuthority_DeactivateRegistration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(core.Registration)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RegistrationAuthorityServer).DeactivateRegistration(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ra.RegistrationAuthority/DeactivateRegistration",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RegistrationAuthorityServer).DeactivateRegistration(ctx, req.(*core.Registration))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _RegistrationAuthority_DeactivateAuthorization_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(core.Authorization)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RegistrationAuthorityServer).DeactivateAuthorization(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ra.RegistrationAuthority/DeactivateAuthorization",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RegistrationAuthorityServer).DeactivateAuthorization(ctx, req.(*core.Authorization))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _RegistrationAuthority_AdministrativelyRevokeCertificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(AdministrativelyRevokeCertificateRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(RegistrationAuthorityServer).AdministrativelyRevokeCertificate(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/ra.RegistrationAuthority/AdministrativelyRevokeCertificate",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(RegistrationAuthorityServer).AdministrativelyRevokeCertificate(ctx, req.(*AdministrativelyRevokeCertificateRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _RegistrationAuthority_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "ra.RegistrationAuthority",
|
|
HandlerType: (*RegistrationAuthorityServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "NewRegistration",
|
|
Handler: _RegistrationAuthority_NewRegistration_Handler,
|
|
},
|
|
{
|
|
MethodName: "NewAuthorization",
|
|
Handler: _RegistrationAuthority_NewAuthorization_Handler,
|
|
},
|
|
{
|
|
MethodName: "NewCertificate",
|
|
Handler: _RegistrationAuthority_NewCertificate_Handler,
|
|
},
|
|
{
|
|
MethodName: "UpdateRegistration",
|
|
Handler: _RegistrationAuthority_UpdateRegistration_Handler,
|
|
},
|
|
{
|
|
MethodName: "UpdateAuthorization",
|
|
Handler: _RegistrationAuthority_UpdateAuthorization_Handler,
|
|
},
|
|
{
|
|
MethodName: "RevokeCertificateWithReg",
|
|
Handler: _RegistrationAuthority_RevokeCertificateWithReg_Handler,
|
|
},
|
|
{
|
|
MethodName: "DeactivateRegistration",
|
|
Handler: _RegistrationAuthority_DeactivateRegistration_Handler,
|
|
},
|
|
{
|
|
MethodName: "DeactivateAuthorization",
|
|
Handler: _RegistrationAuthority_DeactivateAuthorization_Handler,
|
|
},
|
|
{
|
|
MethodName: "AdministrativelyRevokeCertificate",
|
|
Handler: _RegistrationAuthority_AdministrativelyRevokeCertificate_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: fileDescriptor0,
|
|
}
|
|
|
|
func init() { proto1.RegisterFile("ra/proto/ra.proto", fileDescriptor0) }
|
|
|
|
var fileDescriptor0 = []byte{
|
|
// 465 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x54, 0xc1, 0x6e, 0xd3, 0x40,
|
|
0x14, 0x4c, 0x9a, 0x06, 0xe8, 0x4b, 0x69, 0xc9, 0xab, 0xd2, 0xa6, 0x46, 0x40, 0xba, 0x5c, 0x72,
|
|
0x40, 0xa9, 0x54, 0x8e, 0x15, 0x12, 0xa5, 0x05, 0x29, 0x52, 0xe4, 0x43, 0x24, 0x84, 0xe0, 0xc4,
|
|
0xe2, 0x3c, 0xe2, 0x15, 0x89, 0xd7, 0xac, 0xd7,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