Start of support for AES packet encryption

bug/bundler_fix
OJ 2017-06-19 21:00:51 +10:00
parent 64bf6910e2
commit cec87a3e4f
No known key found for this signature in database
GPG Key ID: D5DC61FB93260597
2 changed files with 9 additions and 0 deletions

View File

@ -680,6 +680,12 @@ class ClientCore < Extension
end end
end end
def negotiate_aes
request = Packet.create_request('core_negotiate_aes')
response = client.send_request(request)
response
end
private private
# #

View File

@ -110,6 +110,8 @@ TLV_TYPE_SESSION_GUID = TLV_META_TYPE_RAW | 462
TLV_TYPE_CIPHER_NAME = TLV_META_TYPE_STRING | 500 TLV_TYPE_CIPHER_NAME = TLV_META_TYPE_STRING | 500
TLV_TYPE_CIPHER_PARAMETERS = TLV_META_TYPE_GROUP | 501 TLV_TYPE_CIPHER_PARAMETERS = TLV_META_TYPE_GROUP | 501
TLV_TYPE_AES_KEY = TLV_META_TYPE_RAW | 550
# #
# Core flags # Core flags
# #
@ -217,6 +219,7 @@ class Tlv
when TLV_TYPE_MACHINE_ID; "MACHINE-ID" when TLV_TYPE_MACHINE_ID; "MACHINE-ID"
when TLV_TYPE_UUID; "UUID" when TLV_TYPE_UUID; "UUID"
when TLV_TYPE_SESSION_GUID; "SESSION-GUID" when TLV_TYPE_SESSION_GUID; "SESSION-GUID"
when TLV_TYPE_AES_KEY; "AES-KEY"
#when Extensions::Stdapi::TLV_TYPE_NETWORK_INTERFACE; 'network-interface' #when Extensions::Stdapi::TLV_TYPE_NETWORK_INTERFACE; 'network-interface'
#when Extensions::Stdapi::TLV_TYPE_IP; 'ip-address' #when Extensions::Stdapi::TLV_TYPE_IP; 'ip-address'