-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* avoid race conditions in stream (#173) * avoid race conditions in stream * fix * update certificate * update helpers * update ignore * udpate CHelpers * need to fix public key * update parseCertificate * udpate ParseCertificate * update swift format * update clang format * update clang format * update error message * update makefile * update makefile * update makefile --------- Co-authored-by: Xiliang Chen <[email protected]>
- Loading branch information
Showing
15 changed files
with
361 additions
and
279 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,19 @@ | ||
BasedOnStyle: LLVM | ||
IndentWidth: 4 | ||
ColumnLimit: 100 | ||
BreakBeforeBraces: Custom | ||
BraceWrapping: | ||
AfterFunction: true | ||
SplitEmptyFunction: false | ||
AfterControlStatement: false | ||
AfterClass: false | ||
AfterStruct: false | ||
BeforeElse: false | ||
IndentBraces: false | ||
AllowShortFunctionsOnASingleLine: false | ||
BinPackParameters: false | ||
BinPackArguments: false | ||
AlignAfterOpenBracket: AlwaysBreak | ||
AlignTrailingComments: true | ||
AllowAllParametersOfDeclarationOnNextLine: false | ||
PenaltyBreakBeforeFirstCallParameter: 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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 |
---|---|---|
@@ -1,16 +1,24 @@ | ||
#include <stddef.h> | ||
#include <arpa/inet.h> | ||
#include <stddef.h> | ||
|
||
int parse_pkcs12_certificate( | ||
const unsigned char *data, | ||
size_t length, | ||
unsigned char **public_key, | ||
size_t *public_key_len, | ||
char **alt_name, | ||
char **error_message); | ||
|
||
int generate_self_signed_cert_and_pkcs12( | ||
const unsigned char *private_key_buf, | ||
size_t private_key_len, | ||
const char *alt_name, // null terminated string | ||
unsigned char **pkcs12_data, | ||
int *pkcs12_len | ||
); | ||
int *pkcs12_len); | ||
|
||
char *get_error_string(int error); | ||
|
||
static inline uint16_t helper_ntohs(in_port_t netport) { | ||
static inline uint16_t helper_ntohs(in_port_t netport) | ||
{ | ||
return ntohs(netport); | ||
} | ||
} |
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
Oops, something went wrong.