diff options
author | Björn Gustavsson <[email protected]> | 2014-02-20 14:29:57 +0100 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2014-02-21 12:20:39 +0100 |
commit | e5c71b7f176393cdb3f6b9d17a5969e9bd89c88b (patch) | |
tree | 0ae4680c17b76f776fdcaf33233a264503083a54 /lib/eldap | |
parent | 687d9c05f94e807537ee397157b68653d1ddf231 (diff) | |
download | otp-e5c71b7f176393cdb3f6b9d17a5969e9bd89c88b.tar.gz otp-e5c71b7f176393cdb3f6b9d17a5969e9bd89c88b.tar.bz2 otp-e5c71b7f176393cdb3f6b9d17a5969e9bd89c88b.zip |
Deprecate asn1 functions
Those asn1 functions are no longer needed because they all have
better alternatives.
Diffstat (limited to 'lib/eldap')
-rw-r--r-- | lib/eldap/src/eldap.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/eldap/src/eldap.erl b/lib/eldap/src/eldap.erl index af5bf94c97..a86fd39adb 100644 --- a/lib/eldap/src/eldap.erl +++ b/lib/eldap/src/eldap.erl @@ -743,7 +743,7 @@ request(S, Data, ID, Request) -> send_request(S, Data, ID, Request) -> Message = #'LDAPMessage'{messageID = ID, protocolOp = Request}, - {ok,Bytes} = asn1rt:encode('ELDAPv3', 'LDAPMessage', Message), + {ok,Bytes} = 'ELDAPv3':encode('LDAPMessage', Message), case do_send(S, Data, Bytes) of {error,Reason} -> throw({gen_tcp_error,Reason}); Else -> Else @@ -762,7 +762,7 @@ do_recv(S, #eldap{using_tls=true, timeout=Timeout}, Len) -> recv_response(S, Data) -> case do_recv(S, Data, 0) of {ok, Packet} -> - case asn1rt:decode('ELDAPv3', 'LDAPMessage', Packet) of + case 'ELDAPv3':decode('LDAPMessage', Packet) of {ok,Resp} -> {ok,Resp}; Error -> throw(Error) end; |