| 134 | }; |
| 135 | |
| 136 | int main(int argc, char **argv) { |
| 137 | try { |
| 138 | // Location of certificates and private key information: |
| 139 | if (argc > 1) { |
| 140 | cert_directory = argv[1]; |
| 141 | size_t sz = cert_directory.size(); |
| 142 | if (sz && cert_directory[sz -1] != '/') |
| 143 | cert_directory.append("/"); |
| 144 | } else { |
| 145 | cert_directory = "ssl-certs/"; |
| 146 | } |
| 147 | hello_world_direct hwd; |
| 148 | proton::container(hwd).run(); |
| 149 | return 0; |
| 150 | } catch (const std::exception& e) { |
| 151 | std::cerr << e.what() << std::endl; |
| 152 | } |
| 153 | return 1; |
| 154 | } |
| 155 | |
| 156 | |
| 157 | bool using_OpenSSL() { |