Skip to content

Commit

Permalink
Do SSL/DTLS init on addon start instead of in DtlsClient Init (#1324)
Browse files Browse the repository at this point in the history
  • Loading branch information
lodoyun committed Oct 30, 2018
1 parent 4ddea91 commit e972306
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 0 additions & 1 deletion erizo/src/erizo/dtls/DtlsClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,6 @@ int createCert(const std::string& pAor, int expireDays, int keyLen, X509*& outCe
// is required
DtlsSocketContext::DtlsSocketContext() {
started = false;
DtlsSocketContext::Init();

ELOG_DEBUG("Creating Dtls factory, Openssl v %s", OPENSSL_VERSION_TEXT);

Expand Down
2 changes: 2 additions & 0 deletions erizoAPI/addon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#define BUILDING_NODE_EXTENSION
#endif
#include <nan.h>
#include <dtls/DtlsSocket.h>
#include "WebRtcConnection.h"
#include "MediaStream.h"
#include "OneToManyProcessor.h"
Expand All @@ -14,6 +15,7 @@
#include "IOThreadPool.h"

NAN_MODULE_INIT(InitAll) {
dtls::DtlsSocketContext::Init();
WebRtcConnection::Init(target);
MediaStream::Init(target);
OneToManyProcessor::Init(target);
Expand Down

0 comments on commit e972306

Please sign in to comment.