"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "wfe2/wfe.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).

wfe.go  (boulder-release-2021-07-12):wfe.go  (boulder-release-2021-07-19)
skipping to change at line 1426 skipping to change at line 1426
// attempt to deactivate if the provided status is different from their c urrent // attempt to deactivate if the provided status is different from their c urrent
// status. // status.
// //
// If a user tries to send both a deactivation request and an update to t heir // If a user tries to send both a deactivation request and an update to t heir
// contacts or subscriber agreement URL the deactivation will take place and // contacts or subscriber agreement URL the deactivation will take place and
// return before an update would be performed. // return before an update would be performed.
if updatePb.Status != "" && updatePb.Status != basePb.Status { if updatePb.Status != "" && updatePb.Status != basePb.Status {
if updatePb.Status != string(core.StatusDeactivated) { if updatePb.Status != string(core.StatusDeactivated) {
return nil, probs.Malformed("Invalid value provided for s tatus field") return nil, probs.Malformed("Invalid value provided for s tatus field")
} }
if err := wfe.RA.DeactivateRegistration(ctx, *currAcct); err != n _, err := wfe.RA.DeactivateRegistration(ctx, basePb)
il { if err != nil {
return nil, web.ProblemDetailsForError(err, "Unable to de activate account") return nil, web.ProblemDetailsForError(err, "Unable to de activate account")
} }
currAcct.Status = core.StatusDeactivated currAcct.Status = core.StatusDeactivated
return currAcct, nil return currAcct, nil
} }
// Account objects contain a JWK object which are merged in UpdateRegistr ation // Account objects contain a JWK object which are merged in UpdateRegistr ation
// if it is different from the existing account key. Since this isn't how you // if it is different from the existing account key. Since this isn't how you
// update the key we just copy the existing one into the update object he re. This // update the key we just copy the existing one into the update object he re. This
// ensures the key isn't changed and that we can cleanly serialize the up date as // ensures the key isn't changed and that we can cleanly serialize the up date as
 End of changes. 1 change blocks. 
2 lines changed or deleted 2 lines changed or added

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