-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #538 from FreeTAKTeam/ssl-socket-close
added support to close the unwrapped socket in ssl connections
- Loading branch information
Showing
7 changed files
with
100 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
FreeTAKServer/services/ssl_cot_service/model/raw_ssl_connection_information.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
from FreeTAKServer.model.RawConnectionInformation import RawConnectionInformation | ||
|
||
class RawSSLConnectionInformation(RawConnectionInformation): | ||
def __init__(self): | ||
super().__init__() | ||
self.unwrapped_sock = None |
39 changes: 39 additions & 0 deletions
39
FreeTAKServer/services/ssl_cot_service/model/ssl_client_information.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# pylint: disable=trailing-whitespace | ||
####################################################### | ||
# | ||
# ClientInformation.py | ||
# Python implementation of the Class ClientInformation | ||
# Generated by Enterprise Architect | ||
# Created on: 21-May-2020 9:47:19 AM | ||
# Original author: Natha Paquette | ||
# | ||
####################################################### | ||
import copy | ||
|
||
|
||
class SSLClientInformation: | ||
def __init__(self): | ||
self.modelObject = '' | ||
self.alive = "" | ||
self.dataQueue = "" | ||
self.ID = "" | ||
self.idData = "" | ||
self.IP = "" | ||
self.receptionHandler = "" | ||
self.sendData = "" | ||
self.socket = "" | ||
self.unwrapped_socket = "" | ||
self.type = "clientInformation" | ||
|
||
def __deepcopy__(self, memodict=dict): | ||
returned = ClientInformation() | ||
returned.modelObject = copy.deepcopy(self.modelObject) | ||
returned.alive = copy.deepcopy(self.alive) | ||
returned.dataQueue = copy.deepcopy(self.dataQueue) | ||
returned.ID = copy.deepcopy(self.ID) | ||
returned.idData = copy.deepcopy(self.idData) | ||
returned.IP = copy.deepcopy(self.IP) | ||
returned.receptionHandler = copy.deepcopy(self.receptionHandler) | ||
returned.sendData = copy.deepcopy(self.sendData) | ||
returned.type = copy.deepcopy(self.type) | ||
return returned |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters