Overview
Comment: | Add support for TLS |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
441110b797fb685e64ebcd6e8321b29f |
User & Date: | js on 2019-03-03 13:27:21 |
Other Links: | manifest | tags |
Context
2019-03-17
| ||
03:32 | Use dot syntax check-in: 58aa5e718e user: js tags: trunk | |
2019-03-03
| ||
13:27 | Add support for TLS check-in: 441110b797 user: js tags: trunk | |
12:52 | Enable multi-threading check-in: d69dfe4c1c user: js tags: trunk | |
Changes
Modified .gitignore from [7cda693f90] to [10909508c9].
1 2 3 4 5 | 1 2 3 4 5 6 7 | + + | *.o *~ ObjWebServer htdocs localhost.crt localhost.key modules |
Modified ConfigParser.h from [de8ed0e952] to [4d0294271f].
︙ | |||
13 14 15 16 17 18 19 20 21 22 | 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | + + + + + + + + + + + + - + - - - + + | * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #import <ObjFW/ObjFW.h> @interface ListenConfig: OFObject { OFString *_host; uint16_t _port; OFString *_TLSCertificateFile, *_TLSKeyFile; } @property (copy, nonatomic) OFString *host; @property (nonatomic) uint16_t port; @property (copy, nonatomic) OFString *TLSCertificateFile, *TLSKeyFile; @end @interface ConfigParser: OFObject { |
Modified ConfigParser.m from [05567321bf] to [a1c01b5487].
︙ | |||
20 21 22 23 24 25 26 27 28 | 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | + + + + + + + + + + + + + + + - + | @interface ConfigParser () - (void)_parseConfig: (OFXMLElement *)config; - (void)_parseListens: (OFArray OF_GENERIC(OFXMLElement *) *)elements; - (void)_parseModules: (OFArray OF_GENERIC(OFXMLElement *) *)elements; - (void)_invalidConfig: (OFString *)message; @end @implementation ListenConfig @synthesize host = _host, port = _port; @synthesize TLSCertificateFile = _TLSCertificateFile; @synthesize TLSKeyFile = _TLSKeyFile; - (void)dealloc { [_host release]; [_TLSCertificateFile release]; [_TLSKeyFile release]; [super dealloc]; } @end @implementation ConfigParser |
︙ | |||
51 52 53 54 55 56 57 | 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | - + - - + + + + - + + + - - + + - + + + + + + - - - + + + + + + + + + + + + + + - - + + | } return self; } - (void)dealloc { |
︙ |
Modified Makefile from [e64ed47e62] to [8224799f21].
1 | 1 2 3 4 5 6 7 8 9 10 | - - + + | all: |
Modified ObjWebServer.m from [b87ee149c4] to [f30751d900].
︙ | |||
28 29 30 31 32 33 34 | 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 | - + - | ConfigParser *_config; OFArray OF_GENERIC(OFPair OF_GENERIC(OFString *, OFPlugin <Module> *) *) *_modules; } - (OFPlugin <Module> *)loadModuleAtPath: (OFString *)path withConfig: (OFXMLElement *)config; |
︙ | |||
58 59 60 61 62 63 64 | 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 | - - + - - - - + - - - + - - - - + + + + + + + + + + + - + + + + + + + + + + | [modules addObject: [OFPair pairWithFirstObject: prefix secondObject: module]]; } [modules makeImmutable]; _modules = [modules copy]; |
Modified ObjWebServer.xml from [27aa382c3b] to [1624c62e7c].
1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | - - + + - - - + + + | <ObjWebServer> |
︙ |