Compare commits
2 Commits
6c080a438c
...
b6dff4d2f3
Author | SHA1 | Date | |
---|---|---|---|
b6dff4d2f3 | |||
44be9ad2f6 |
@ -23,6 +23,8 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include <stddef.h>
|
||||||
|
|
||||||
#include <openssl/types.h>
|
#include <openssl/types.h>
|
||||||
|
|
||||||
#include <why2/flags.h>
|
#include <why2/flags.h>
|
||||||
|
@ -1152,10 +1152,12 @@ void *why2_authority_communicate_thread(void *arg)
|
|||||||
//ALLOCATE
|
//ALLOCATE
|
||||||
buffer = why2_calloc(buffer_size + 1, sizeof(char));
|
buffer = why2_calloc(buffer_size + 1, sizeof(char));
|
||||||
|
|
||||||
fread(buffer, buffer_size, 1, cert); //READ
|
//READ
|
||||||
|
if (fread(buffer, buffer_size, 1, cert) == 1)
|
||||||
//SEND STATUS
|
{
|
||||||
why2_send_socket_code(NULL, NULL, NULL, connection, strcmp(buffer, message) == 0 ? WHY2_CHAT_CODE_SUCCESS : WHY2_CHAT_CODE_FAILURE);
|
//SEND STATUS
|
||||||
|
why2_send_socket_code(NULL, NULL, NULL, connection, strcmp(buffer, message) == 0 ? WHY2_CHAT_CODE_SUCCESS : WHY2_CHAT_CODE_FAILURE);
|
||||||
|
}
|
||||||
|
|
||||||
//DEALLOCATION
|
//DEALLOCATION
|
||||||
why2_deallocate(buffer);
|
why2_deallocate(buffer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user