summaryrefslogtreecommitdiffstats
path: root/conn.go
diff options
context:
space:
mode:
authorSamuel Stauffer <samuel@descolada.com>2014-03-19 23:13:31 +0100
committerSamuel Stauffer <samuel@descolada.com>2014-03-19 23:13:31 +0100
commit5023af85baebfd0fb8b00d23be19a17f49e02028 (patch)
treea77d7b9b0b754842af325eb204b430722333de30 /conn.go
parentDon't capitalize function arguments (diff)
downloadldap-5023af85baebfd0fb8b00d23be19a17f49e02028.tar
ldap-5023af85baebfd0fb8b00d23be19a17f49e02028.tar.gz
ldap-5023af85baebfd0fb8b00d23be19a17f49e02028.tar.bz2
ldap-5023af85baebfd0fb8b00d23be19a17f49e02028.tar.lz
ldap-5023af85baebfd0fb8b00d23be19a17f49e02028.tar.xz
ldap-5023af85baebfd0fb8b00d23be19a17f49e02028.tar.zst
ldap-5023af85baebfd0fb8b00d23be19a17f49e02028.zip
Diffstat (limited to '')
-rw-r--r--conn.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/conn.go b/conn.go
index d5fbef0..f1fadaa 100644
--- a/conn.go
+++ b/conn.go
@@ -126,9 +126,9 @@ func (l *Conn) StartTLS(config *tls.Config) error {
}
packet := ber.Encode(ber.ClassUniversal, ber.TypeConstructed, ber.TagSequence, nil, "LDAP Request")
- packet.AppendChild(ber.NewInteger(ber.ClassUniversal, ber.TypePrimative, ber.TagInteger, messageID, "MessageID"))
+ packet.AppendChild(ber.NewInteger(ber.ClassUniversal, ber.TypePrimitive, ber.TagInteger, messageID, "MessageID"))
request := ber.Encode(ber.ClassApplication, ber.TypeConstructed, ApplicationExtendedRequest, nil, "Start TLS")
- request.AppendChild(ber.NewString(ber.ClassContext, ber.TypePrimative, 0, "1.3.6.1.4.1.1466.20037", "TLS Extended Command"))
+ request.AppendChild(ber.NewString(ber.ClassContext, ber.TypePrimitive, 0, "1.3.6.1.4.1.1466.20037", "TLS Extended Command"))
packet.AppendChild(request)
l.Debug.PrintPacket(packet)