"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "grpc/ra-wrappers.go" between
boulder-release-2021-07-12.tar.gz and boulder-release-2021-07-19.tar.gz

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

ra-wrappers.go  (boulder-release-2021-07-12):ra-wrappers.go  (boulder-release-2021-07-19)
skipping to change at line 72 skipping to change at line 72
} }
func (rac RegistrationAuthorityClientWrapper) PerformValidation(ctx context.Cont ext, req *rapb.PerformValidationRequest) (*corepb.Authorization, error) { func (rac RegistrationAuthorityClientWrapper) PerformValidation(ctx context.Cont ext, req *rapb.PerformValidationRequest) (*corepb.Authorization, error) {
return rac.inner.PerformValidation(ctx, req) return rac.inner.PerformValidation(ctx, req)
} }
func (rac RegistrationAuthorityClientWrapper) RevokeCertificateWithReg(ctx conte xt.Context, req *rapb.RevokeCertificateWithRegRequest) (*emptypb.Empty, error) { func (rac RegistrationAuthorityClientWrapper) RevokeCertificateWithReg(ctx conte xt.Context, req *rapb.RevokeCertificateWithRegRequest) (*emptypb.Empty, error) {
return rac.inner.RevokeCertificateWithReg(ctx, req) return rac.inner.RevokeCertificateWithReg(ctx, req)
} }
func (rac RegistrationAuthorityClientWrapper) DeactivateRegistration(ctx context func (rac RegistrationAuthorityClientWrapper) DeactivateRegistration(ctx context
.Context, reg core.Registration) error { .Context, reg *corepb.Registration) (*emptypb.Empty, error) {
regPB, err := RegistrationToPB(reg) return rac.inner.DeactivateRegistration(ctx, reg)
if err != nil {
return err
}
_, err = rac.inner.DeactivateRegistration(ctx, regPB)
if err != nil {
return err
}
return nil
} }
func (rac RegistrationAuthorityClientWrapper) DeactivateAuthorization(ctx contex t.Context, auth core.Authorization) error { func (rac RegistrationAuthorityClientWrapper) DeactivateAuthorization(ctx contex t.Context, auth core.Authorization) error {
authzPB, err := AuthzToPB(auth) authzPB, err := AuthzToPB(auth)
if err != nil { if err != nil {
return err return err
} }
_, err = rac.inner.DeactivateAuthorization(ctx, authzPB) _, err = rac.inner.DeactivateAuthorization(ctx, authzPB)
if err != nil { if err != nil {
skipping to change at line 188 skipping to change at line 178
func (ras *RegistrationAuthorityServerWrapper) PerformValidation(ctx context.Con text, request *rapb.PerformValidationRequest) (*corepb.Authorization, error) { func (ras *RegistrationAuthorityServerWrapper) PerformValidation(ctx context.Con text, request *rapb.PerformValidationRequest) (*corepb.Authorization, error) {
return ras.inner.PerformValidation(ctx, request) return ras.inner.PerformValidation(ctx, request)
} }
func (ras *RegistrationAuthorityServerWrapper) RevokeCertificateWithReg(ctx cont ext.Context, request *rapb.RevokeCertificateWithRegRequest) (*emptypb.Empty, err or) { func (ras *RegistrationAuthorityServerWrapper) RevokeCertificateWithReg(ctx cont ext.Context, request *rapb.RevokeCertificateWithRegRequest) (*emptypb.Empty, err or) {
return ras.inner.RevokeCertificateWithReg(ctx, request) return ras.inner.RevokeCertificateWithReg(ctx, request)
} }
func (ras *RegistrationAuthorityServerWrapper) DeactivateRegistration(ctx contex t.Context, request *corepb.Registration) (*emptypb.Empty, error) { func (ras *RegistrationAuthorityServerWrapper) DeactivateRegistration(ctx contex t.Context, request *corepb.Registration) (*emptypb.Empty, error) {
if request == nil || !registrationValid(request) { return ras.inner.DeactivateRegistration(ctx, request)
return nil, errIncompleteRequest
}
reg, err := PbToRegistration(request)
if err != nil {
return nil, err
}
err = ras.inner.DeactivateRegistration(ctx, reg)
if err != nil {
return nil, err
}
return &emptypb.Empty{}, nil
} }
func (ras *RegistrationAuthorityServerWrapper) DeactivateAuthorization(ctx conte xt.Context, request *corepb.Authorization) (*emptypb.Empty, error) { func (ras *RegistrationAuthorityServerWrapper) DeactivateAuthorization(ctx conte xt.Context, request *corepb.Authorization) (*emptypb.Empty, error) {
if request == nil || !authorizationValid(request) { if request == nil || !authorizationValid(request) {
return nil, errIncompleteRequest return nil, errIncompleteRequest
} }
authz, err := PBToAuthz(request) authz, err := PBToAuthz(request)
if err != nil { if err != nil {
return nil, err return nil, err
} }
 End of changes. 2 change blocks. 
25 lines changed or deleted 4 lines changed or added

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