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.
25 lines
640 B
Go
25 lines
640 B
Go
package message
|
|
|
|
import "fmt"
|
|
|
|
//
|
|
// AbandonRequest ::= [APPLICATION 16] MessageID
|
|
|
|
func readAbandonRequest(bytes *Bytes) (ret AbandonRequest, err error) {
|
|
var mes MessageID
|
|
mes, err = readTaggedMessageID(bytes, classApplication, TagAbandonRequest)
|
|
if err != nil {
|
|
err = LdapError{fmt.Sprintf("readAbandonRequest:\n%s", err.Error())}
|
|
return
|
|
}
|
|
ret = AbandonRequest(mes)
|
|
return
|
|
}
|
|
|
|
func (abandon AbandonRequest) size() int {
|
|
return MessageID(abandon).sizeTagged(TagAbandonRequest)
|
|
}
|
|
|
|
func (abandon AbandonRequest) write(bytes *Bytes) int {
|
|
return MessageID(abandon).writeTagged(bytes, classApplication, TagAbandonRequest)
|
|
}
|