-
Notifications
You must be signed in to change notification settings - Fork 727
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/tinyldap: fix build with clang16
- Loading branch information
Dirk Meyer
authored and
Dirk Meyer
committed
Jul 3, 2023
1 parent
f34a5dd
commit a52a3ab
Showing
3 changed files
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- fmt_tls_clienthello.c.orig 2015-05-07 23:53:05 UTC | ||
+++ fmt_tls_clienthello.c | ||
@@ -2,6 +2,7 @@ | ||
#include "uint16.h" | ||
#include "uint32.h" | ||
#include <time.h> | ||
+#include <string.h> | ||
|
||
size_t fmt_tls_clienthello(char* dest, struct ssl_context* sc) { | ||
size_t hnextlen=sc->servername?strlen(sc->servername)+9:0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- init_tls_context.c.orig 2015-05-07 23:53:06 UTC | ||
+++ init_tls_context.c | ||
@@ -1,6 +1,7 @@ | ||
#include "tinytls.h" | ||
#include "open.h" | ||
#include <unistd.h> | ||
+#include <string.h> | ||
|
||
void init_tls_context_norandom(struct ssl_context* sc, const char* servername) { | ||
memset(sc,0,sizeof *sc); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- ldap_match_mapped.c.orig 2017-03-19 11:47:19 UTC | ||
+++ ldap_match_mapped.c | ||
@@ -14,7 +14,7 @@ extern uint32 magic,attribute_count,record_count,indic | ||
extern uint32 dn_ofs,objectClass_ofs; | ||
|
||
int substringmatch(struct Substring* x,const char* attr,int ignorecase) { | ||
- int (*diff)(const void* a, unsigned long len, const void* b); | ||
+ int (*diff)(const void* a, size_t len, const void* b); | ||
if (ignorecase) | ||
diff=case_diffb; | ||
else |