1607 TLS_req check additional TLS requirements 1608 1609 Parameters li

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
######################################################################
1607 ### TLS_req: check additional TLS requirements
1608 ###
1609 ### Parameters: [<list> <of> <req>] $| <$-:$+>
1610 ### $-: SMTP reply code
1611 ### $+: Enhanced Status Code
1612 ######################################################################
1613 STLS_req
1614 R $| $+ $@ OK
1615 R<CN> $* $| <$+> $: <CN:$&{TLS_Name}> $1 $| <$2>
1616 R<CN:$&{cn_subject}> $* $| <$+> $@ $>"TLS_req" $1 $| <$2>
1617 R<CN:$+> $* $| <$-:$+> $#error $@ $4 $: $3 " CN " $&{cn_subject} " does not match " $1
1618 R<CS:$&{cert_subject}> $* $| <$+> $@ $>"TLS_req" $1 $| <$2>
1619 R<CS:$+> $* $| <$-:$+> $#error $@ $4 $: $3 " Cert Subject " $&{cert_subject} " does not match " $1
1620 R<CI:$&{cert_issuer}> $* $| <$+> $@ $>"TLS_req" $1 $| <$2>
1621 R<CI:$+> $* $| <$-:$+> $#error $@ $4 $: $3 " Cert Issuer " $&{cert_issuer} " does not match " $1
1622 ROK $@ OK
1623
1624 ###############################################