* Add server/client's key (each configuration instance only needs to call this * method once) * @param key_file {const char*} Full path of key file, non-empty * @param key_pass {const char*} Password of key file. Can write NULL if there * is no key password * @return {bool} Whether setting was successful * @deprecated use add_cert(const char*, const char*, const char*) */
| 150 | * @deprecated use add_cert(const char*, const char*, const char*) |
| 151 | */ |
| 152 | virtual bool set_key(const char* key_file, const char* key_pass) { |
| 153 | (void) key_file; |
| 154 | (void) key_pass; |
| 155 | return false; |
| 156 | } |
| 157 | |
| 158 | // Only for compatibility with old API |
| 159 | bool set_key(const char* key_file) { |