File tree 2 files changed +18
-0
lines changed
2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -140,6 +140,7 @@ type Cert interface {
140
140
NewCertEntry (filename string ) error
141
141
SetCertEntry (filename , payload string ) error
142
142
CommitCertEntry (filename string ) error
143
+ AbortCertEntry (filename string ) error
143
144
AddCrtListEntry (crtList string , entry CrtListEntry ) error
144
145
}
145
146
Original file line number Diff line number Diff line change @@ -1250,6 +1250,23 @@ func (c *client) CommitCertEntry(filename string) error {
1250
1250
return nil
1251
1251
}
1252
1252
1253
+ func (c * client ) AbortCertEntry (filename string ) error {
1254
+ if len (c .runtimes ) == 0 {
1255
+ return fmt .Errorf ("no valid runtimes found" )
1256
+ }
1257
+ var lastErr error
1258
+ for _ , runtime := range c .runtimes {
1259
+ err := runtime .AbortCertEntry (filename )
1260
+ if err != nil {
1261
+ lastErr = err
1262
+ }
1263
+ }
1264
+ if lastErr != nil {
1265
+ return lastErr
1266
+ }
1267
+ return nil
1268
+ }
1269
+
1253
1270
func (c * client ) AddCrtListEntry (crtList string , entry CrtListEntry ) error {
1254
1271
if len (c .runtimes ) == 0 {
1255
1272
return fmt .Errorf ("no valid runtimes found" )
You can’t perform that action at this time.
0 commit comments