You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Bring that Whole New World to the Old Continent too
Applies the clang-format style to the 2.1 branch as done for master in
5dbf1809c6.
This commit is contained in:
@@ -28,24 +28,18 @@
|
||||
/*************************************************************************/
|
||||
#include "stream_peer_ssl.h"
|
||||
|
||||
|
||||
StreamPeerSSL* (*StreamPeerSSL::_create)()=NULL;
|
||||
|
||||
|
||||
|
||||
StreamPeerSSL *(*StreamPeerSSL::_create)() = NULL;
|
||||
|
||||
StreamPeerSSL *StreamPeerSSL::create() {
|
||||
|
||||
return _create();
|
||||
}
|
||||
|
||||
StreamPeerSSL::LoadCertsFromMemory StreamPeerSSL::load_certs_func = NULL;
|
||||
bool StreamPeerSSL::available = false;
|
||||
bool StreamPeerSSL::initialize_certs = true;
|
||||
|
||||
|
||||
StreamPeerSSL::LoadCertsFromMemory StreamPeerSSL::load_certs_func=NULL;
|
||||
bool StreamPeerSSL::available=false;
|
||||
bool StreamPeerSSL::initialize_certs=true;
|
||||
|
||||
void StreamPeerSSL::load_certs_from_memory(const ByteArray& p_memory) {
|
||||
void StreamPeerSSL::load_certs_from_memory(const ByteArray &p_memory) {
|
||||
if (load_certs_func)
|
||||
load_certs_func(p_memory);
|
||||
}
|
||||
@@ -56,18 +50,15 @@ bool StreamPeerSSL::is_available() {
|
||||
|
||||
void StreamPeerSSL::_bind_methods() {
|
||||
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("accept:Error","stream:StreamPeer"),&StreamPeerSSL::accept);
|
||||
ObjectTypeDB::bind_method(_MD("connect:Error","stream:StreamPeer","validate_certs","for_hostname"),&StreamPeerSSL::connect,DEFVAL(false),DEFVAL(String()));
|
||||
ObjectTypeDB::bind_method(_MD("get_status"),&StreamPeerSSL::get_status);
|
||||
ObjectTypeDB::bind_method(_MD("disconnect"),&StreamPeerSSL::disconnect);
|
||||
BIND_CONSTANT( STATUS_DISCONNECTED );
|
||||
BIND_CONSTANT( STATUS_CONNECTED );
|
||||
BIND_CONSTANT( STATUS_ERROR_NO_CERTIFICATE );
|
||||
BIND_CONSTANT( STATUS_ERROR_HOSTNAME_MISMATCH );
|
||||
|
||||
ObjectTypeDB::bind_method(_MD("accept:Error", "stream:StreamPeer"), &StreamPeerSSL::accept);
|
||||
ObjectTypeDB::bind_method(_MD("connect:Error", "stream:StreamPeer", "validate_certs", "for_hostname"), &StreamPeerSSL::connect, DEFVAL(false), DEFVAL(String()));
|
||||
ObjectTypeDB::bind_method(_MD("get_status"), &StreamPeerSSL::get_status);
|
||||
ObjectTypeDB::bind_method(_MD("disconnect"), &StreamPeerSSL::disconnect);
|
||||
BIND_CONSTANT(STATUS_DISCONNECTED);
|
||||
BIND_CONSTANT(STATUS_CONNECTED);
|
||||
BIND_CONSTANT(STATUS_ERROR_NO_CERTIFICATE);
|
||||
BIND_CONSTANT(STATUS_ERROR_HOSTNAME_MISMATCH);
|
||||
}
|
||||
|
||||
StreamPeerSSL::StreamPeerSSL()
|
||||
{
|
||||
StreamPeerSSL::StreamPeerSSL() {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user