| 1147 | |
| 1148 | |
| 1149 | class CLDAP(ASN1_Packet): |
| 1150 | ASN1_codec = ASN1_Codecs.BER |
| 1151 | ASN1_root = ASN1F_SEQUENCE( |
| 1152 | LDAP.ASN1_root.seq[0], # messageID |
| 1153 | ASN1F_optional( |
| 1154 | LDAPDN("user", ""), |
| 1155 | ), |
| 1156 | LDAP.ASN1_root.seq[1], # protocolOp |
| 1157 | ) |
| 1158 | |
| 1159 | def answers(self, other): |
| 1160 | return isinstance(other, CLDAP) and other.messageID == self.messageID |
| 1161 | |
| 1162 | |
| 1163 | bind_layers(CLDAP, CLDAP) |
no test coverage detected
searching dependent graphs…