MCPcopy Create free account
hub / github.com/OpenZWave/open-zwave / init

Method init

cpp/src/platform/HttpClient.cpp:122–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120 ssl_free(&ssl);
121 }
122 bool init
123 (
124 )
125 {
126 const char *pers = "minihttp";
127 const size_t perslen = strlen(pers);
128
129 int err = ctr_drbg_init(&ctr_drbg, entropy_func, &entropy, (unsigned char *)pers, perslen);
130 if(err)
131 {
132 traceprint("SSLCtx::init(): ctr_drbg_init() returned %d\n", err);
133 return false;
134 }
135 _inited |= 1;
136
137 err = ssl_init(&ssl);
138 if(err)
139 {
140 traceprint("SSLCtx::init(): ssl_init() returned %d\n", err);
141 return false;
142 }
143 _inited |= 2;
144
145 return true;
146 }
147 void reset
148 (
149 )

Callers 1

initSSLMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected