File tree Expand file tree Collapse file tree 4 files changed +21
-7
lines changed
Expand file tree Collapse file tree 4 files changed +21
-7
lines changed Original file line number Diff line number Diff line change 1+ /**
2+ * Sample to test HTTPS-notif library performance
3+ */
4+
15#include <stdio.h>
26#include <stdlib.h>
37#include <string.h>
610#include "../src/unyte_https_utils.h"
711
812#define MAX_TO_RECEIVE 200
9- #define SERVERKEYFILE "private.key"
10- #define SERVERCERTFILE "certificate.pem"
13+ #define SERVERKEYFILE "private.key" // Should be generated before run this sample
14+ #define SERVERCERTFILE "certificate.pem" // Should be generated before run this sample
1115
16+ /**
17+ * Read file and return bytes
18+ */
1219char * load_file (const char * file_path )
1320{
1421 FILE * infile ;
Original file line number Diff line number Diff line change 1+ /**
2+ * Sample to show how to consume HTTPS-notif protocol using the library
3+ */
4+
15#include <stdio.h>
26#include <stdlib.h>
37#include <string.h>
610#include "../src/unyte_https_utils.h"
711
812#define MAX_TO_RECEIVE 10
9- #define SERVERKEYFILE "private.key"
10- #define SERVERCERTFILE "certificate.pem"
13+ #define SERVERKEYFILE "private.key" // Should be generated before run this sample
14+ #define SERVERCERTFILE "certificate.pem" // Should be generated before run this sample
1115
16+ /**
17+ * Read file and return bytes
18+ */
1219char * load_file (const char * file_path )
1320{
1421 FILE * infile ;
Original file line number Diff line number Diff line change 22#define UNYTE_HTTPS_VERSION_H
33
44#define UNYTE_HTTPS_NOTIF_VERSION_MAJOR 0
5- #define UNYTE_HTTPS_NOTIF_VERSION_MINOR 0
6- #define UNYTE_HTTPS_NOTIF_VERSION_PATCH 1
5+ #define UNYTE_HTTPS_NOTIF_VERSION_MINOR 1
6+ #define UNYTE_HTTPS_NOTIF_VERSION_PATCH 0
77
88#endif
Original file line number Diff line number Diff line change @@ -5,6 +5,6 @@ libdir=${exec_prefix}/<<lib>>
55
66Name: unyte-https-notif
77Description: Unyte HTTPS-notif protocol library
8- Version: 0.0.1
8+ Version: 0.1.0
99Cflags: -I${includedir}/unyte-https-notif
1010Libs: -L${libdir} -lunyte-https-notif
You can’t perform that action at this time.
0 commit comments