Skip to content

Commit afc4313

Browse files
committed
feat: Update SA model for dns-account-01 challenge
- Update SA model to store dns-account-01 challenge type
1 parent 93e0841 commit afc4313

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

sa/model.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -475,15 +475,17 @@ func modelToOrder(om *orderModel) (*corepb.Order, error) {
475475
}
476476

477477
var challTypeToUint = map[string]uint8{
478-
"http-01": 0,
479-
"dns-01": 1,
480-
"tls-alpn-01": 2,
478+
"http-01": 0,
479+
"dns-01": 1,
480+
"tls-alpn-01": 2,
481+
"dns-account-01": 3,
481482
}
482483

483484
var uintToChallType = map[uint8]string{
484485
0: "http-01",
485486
1: "dns-01",
486487
2: "tls-alpn-01",
488+
3: "dns-account-01",
487489
}
488490

489491
var identifierTypeToUint = map[string]uint8{

0 commit comments

Comments
 (0)