@@ -161,41 +161,6 @@ func SelectCertificateStatus(ctx context.Context, s db.OneSelector, serial strin
161161 return model .toPb (), err
162162}
163163
164- // RevocationStatusModel represents a small subset of the columns in the
165- // certificateStatus table, used to determine the authoritative revocation
166- // status of a certificate.
167- type RevocationStatusModel struct {
168- Status core.OCSPStatus `db:"status"`
169- RevokedDate time.Time `db:"revokedDate"`
170- RevokedReason revocation.Reason `db:"revokedReason"`
171- }
172-
173- // SelectRevocationStatus returns the authoritative revocation information for
174- // the certificate with the given serial.
175- func SelectRevocationStatus (ctx context.Context , s db.OneSelector , serial string ) (* sapb.RevocationStatus , error ) {
176- var model RevocationStatusModel
177- err := s .SelectOne (
178- ctx ,
179- & model ,
180- "SELECT status, revokedDate, revokedReason FROM certificateStatus WHERE serial = ? LIMIT 1" ,
181- serial ,
182- )
183- if err != nil {
184- return nil , err
185- }
186-
187- statusInt , ok := core .OCSPStatusToInt [model .Status ]
188- if ! ok {
189- return nil , fmt .Errorf ("got unrecognized status %q" , model .Status )
190- }
191-
192- return & sapb.RevocationStatus {
193- Status : int64 (statusInt ),
194- RevokedDate : timestamppb .New (model .RevokedDate ),
195- RevokedReason : int64 (model .RevokedReason ),
196- }, nil
197- }
198-
199164var mediumBlobSize = int (math .Pow (2 , 24 ))
200165
201166type issuedNameModel struct {
0 commit comments