bcssocket/include/challenges.h

22 lines
529 B
C

#ifndef CHALLENGES_H
#define CHALLENGES_H
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include "errors.h"
#define MAX_LEN 100
typedef struct challenge_t {
// char (* challenge) (int fd, char * output, char * message, char * question, char * flag);
char * message;
char * question;
char * flag;
} challenge_t;
// char genChallenge(int fd, char * output, char * message, char * question, char * flag);
char genChallenge(int fd, char * output, challenge_t challenge);
#endif