"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "grpc/sa-wrappers.go" between
boulder-release-2019-09-03.tar.gz and boulder-release-2019-09-09.tar.gz

About: Boulder is an ACME-based Certificate Authority (CA) used by Let\PKG_DESCR_TTrsquo;s Encrypt (written in Go).

sa-wrappers.go  (boulder-release-2019-09-03):sa-wrappers.go  (boulder-release-2019-09-09)
skipping to change at line 286 skipping to change at line 286
exists, err := sac.inner.PreviousCertificateExists(ctx, req) exists, err := sac.inner.PreviousCertificateExists(ctx, req)
if err != nil { if err != nil {
return nil, err return nil, err
} }
if exists == nil || exists.Exists == nil { if exists == nil || exists.Exists == nil {
return nil, errIncompleteResponse return nil, errIncompleteResponse
} }
return exists, err return exists, err
} }
func (sac StorageAuthorityClientWrapper) AddPrecertificate(
ctx context.Context,
req *sapb.AddCertificateRequest,
) (*corepb.Empty, error) {
empty, err := sac.inner.AddPrecertificate(ctx, req)
if err != nil {
return nil, err
}
if empty == nil {
return nil, errIncompleteResponse
}
return empty, nil
}
func (sac StorageAuthorityClientWrapper) AddSerial(
ctx context.Context,
req *sapb.AddSerialRequest,
) (*corepb.Empty, error) {
empty, err := sac.inner.AddSerial(ctx, req)
if err != nil {
return nil, err
}
if empty == nil {
return nil, errIncompleteResponse
}
return empty, nil
}
func (sac StorageAuthorityClientWrapper) FQDNSetExists(ctx context.Context, doma ins []string) (bool, error) { func (sac StorageAuthorityClientWrapper) FQDNSetExists(ctx context.Context, doma ins []string) (bool, error) {
response, err := sac.inner.FQDNSetExists(ctx, &sapb.FQDNSetExistsRequest{ Domains: domains}) response, err := sac.inner.FQDNSetExists(ctx, &sapb.FQDNSetExistsRequest{ Domains: domains})
if err != nil { if err != nil {
return false, err return false, err
} }
if response == nil || response.Exists == nil { if response == nil || response.Exists == nil {
return false, errIncompleteResponse return false, errIncompleteResponse
} }
skipping to change at line 618 skipping to change at line 646
func (sas StorageAuthorityClientWrapper) DeactivateAuthorization2(ctx context.Co ntext, req *sapb.AuthorizationID2) (*corepb.Empty, error) { func (sas StorageAuthorityClientWrapper) DeactivateAuthorization2(ctx context.Co ntext, req *sapb.AuthorizationID2) (*corepb.Empty, error) {
_, err := sas.inner.DeactivateAuthorization2(ctx, req) _, err := sas.inner.DeactivateAuthorization2(ctx, req)
return nil, err return nil, err
} }
// StorageAuthorityServerWrapper is the gRPC version of a core.ServerAuthority s erver // StorageAuthorityServerWrapper is the gRPC version of a core.ServerAuthority s erver
type StorageAuthorityServerWrapper struct { type StorageAuthorityServerWrapper struct {
// TODO(#3119): Don't use core.StorageAuthority // TODO(#3119): Don't use core.StorageAuthority
inner core.StorageAuthority inner core.StorageAuthority
core.StorageAuthority
} }
func NewStorageAuthorityServer(inner core.StorageAuthority) *StorageAuthoritySer verWrapper { func NewStorageAuthorityServer(inner core.StorageAuthority) *StorageAuthoritySer verWrapper {
return &StorageAuthorityServerWrapper{inner} return &StorageAuthorityServerWrapper{inner, inner}
} }
func (sas StorageAuthorityServerWrapper) GetRegistration(ctx context.Context, re quest *sapb.RegistrationID) (*corepb.Registration, error) { func (sas StorageAuthorityServerWrapper) GetRegistration(ctx context.Context, re quest *sapb.RegistrationID) (*corepb.Registration, error) {
if request == nil || request.Id == nil { if request == nil || request.Id == nil {
return nil, errIncompleteRequest return nil, errIncompleteRequest
} }
reg, err := sas.inner.GetRegistration(ctx, *request.Id) reg, err := sas.inner.GetRegistration(ctx, *request.Id)
if err != nil { if err != nil {
return nil, err return nil, err
 End of changes. 3 change blocks. 
1 lines changed or deleted 30 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)