@@ -206,12 +206,12 @@ encode(#ssh_msg_disconnect{
206206encode (# ssh_msg_service_request {
207207 name = Service
208208 }) ->
209- <<? Ebyte (? SSH_MSG_SERVICE_REQUEST ), ? Estring_utf8 (Service )>>;
209+ <<? Ebyte (? SSH_MSG_SERVICE_REQUEST ), ? Estring (Service )>>;
210210
211211encode (# ssh_msg_service_accept {
212212 name = Service
213213 }) ->
214- <<? Ebyte (? SSH_MSG_SERVICE_ACCEPT ), ? Estring_utf8 (Service )>>;
214+ <<? Ebyte (? SSH_MSG_SERVICE_ACCEPT ), ? Estring (Service )>>;
215215
216216encode (# ssh_msg_ext_info {
217217 nr_extensions = N ,
@@ -374,7 +374,7 @@ decode(<<?BYTE(?SSH_MSG_CHANNEL_REQUEST), ?UINT32(Recipient),
374374 try
375375 # ssh_msg_channel_request {
376376 recipient_channel = Recipient ,
377- request_type = ? unicode_list (RequestType ),
377+ request_type = binary : bin_to_list (RequestType ),
378378 want_reply = erl_boolean (Bool ),
379379 data = Data
380380 }
@@ -404,16 +404,16 @@ decode(<<?BYTE(?SSH_MSG_USERAUTH_REQUEST),
404404 Data /binary >>) ->
405405 # ssh_msg_userauth_request {
406406 user = ? unicode_list (User ),
407- service = ? unicode_list (Service ),
408- method = ? unicode_list (Method ),
407+ service = binary : bin_to_list (Service ),
408+ method = binary : bin_to_list (Method ),
409409 data = Data
410410 };
411411
412412decode (<<? BYTE (? SSH_MSG_USERAUTH_FAILURE ),
413413 ? DEC_BIN (Auths ,__0 ),
414414 ? BYTE (Bool )>>) ->
415415 # ssh_msg_userauth_failure {
416- authentications = ? unicode_list (Auths ),
416+ authentications = binary : bin_to_list (Auths ),
417417 partial_success = erl_boolean (Bool )
418418 };
419419
@@ -527,12 +527,12 @@ decode(<<"ecdh",?BYTE(?SSH_MSG_KEX_ECDH_REPLY),
527527
528528decode (<<? SSH_MSG_SERVICE_REQUEST , ? DEC_BIN (Service ,__0 )>>) ->
529529 # ssh_msg_service_request {
530- name = ? unicode_list (Service )
530+ name = binary : bin_to_list (Service )
531531 };
532532
533533decode (<<? SSH_MSG_SERVICE_ACCEPT , ? DEC_BIN (Service ,__0 )>>) ->
534534 # ssh_msg_service_accept {
535- name = ? unicode_list (Service )
535+ name = binary : bin_to_list (Service )
536536 };
537537
538538decode (<<? BYTE (? SSH_MSG_DISCONNECT ), ? UINT32 (Code ), ? DEC_BIN (Desc ,__0 ), ? DEC_BIN (Lang ,__1 )>>) ->
0 commit comments