9e4b4a0162
All checks were successful
continuous-integration/drone/push Build is passing
Changement des imports dans les fichiers go de bottin et ldapserver. Rajout d'un fichier txt dans test-automatique pour reproduire le bug des requêtes ldap.
28 lines
900 B
Go
28 lines
900 B
Go
package message
|
|
|
|
import "fmt"
|
|
|
|
// present [7] AttributeDescription,
|
|
func readFilterPresent(bytes *Bytes) (ret FilterPresent, err error) {
|
|
var attributedescription AttributeDescription
|
|
attributedescription, err = readTaggedAttributeDescription(bytes, classContextSpecific, TagFilterPresent)
|
|
if err != nil {
|
|
err = LdapError{fmt.Sprintf("readFilterPresent:\n%s", err.Error())}
|
|
return
|
|
}
|
|
ret = FilterPresent(attributedescription)
|
|
return
|
|
}
|
|
|
|
// present [7] AttributeDescription,
|
|
func (f FilterPresent) write(bytes *Bytes) int {
|
|
return AttributeDescription(f).writeTagged(bytes, classContextSpecific, TagFilterPresent)
|
|
}
|
|
func (filterAnd FilterPresent) getFilterTag() int {
|
|
return TagFilterPresent
|
|
}
|
|
|
|
// present [7] AttributeDescription,
|
|
func (f FilterPresent) size() int {
|
|
return AttributeDescription(f).sizeTagged(TagFilterPresent)
|
|
}
|