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.
24 lines
513 B
Go
24 lines
513 B
Go
package message
|
|
|
|
import "fmt"
|
|
|
|
//
|
|
// AttributeValue ::= OCTET STRING
|
|
|
|
func readAttributeValue(bytes *Bytes) (ret AttributeValue, err error) {
|
|
octetstring, err := readOCTETSTRING(bytes)
|
|
if err != nil {
|
|
err = LdapError{fmt.Sprintf("readAttributeValue:\n%s", err.Error())}
|
|
return
|
|
}
|
|
ret = AttributeValue(octetstring)
|
|
return
|
|
}
|
|
|
|
func (value AttributeValue) write(bytes *Bytes) int {
|
|
return OCTETSTRING(value).write(bytes)
|
|
}
|
|
|
|
func (value AttributeValue) size() int {
|
|
return OCTETSTRING(value).size()
|
|
}
|