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
/** | |
* issue-269.c | |
* https://github.com/babelouest/ulfius/issues/269 | |
* to compile with gcc, run the following command | |
* gcc -o issue-269 issue-269.c -lulfius | |
*/ | |
#include <stdio.h> | |
#include <ulfius.h> | |
#define PORT 8080 |
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
1.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
#!/bin/sh | |
certtool --generate-privkey --outfile packed.key --sec-param High | |
certtool --generate-request --load-privkey packed.key --outfile packed.csr --template template-ca.cfg | |
certtool --generate-self-signed --load-privkey packed.key --outfile packed.crt --template template-ca.cfg | |
certtool --generate-privkey --outfile client-p-v.key --key-type=ecdsa --sec-param High | |
certtool --generate-request --load-privkey client-p-v.key --outfile client-p-v.csr --template template-client.cfg | |
certtool --generate-certificate --load-request client-p-v.csr --load-ca-certificate packed.crt --load-ca-privkey packed.key --outfile client-p-v.crt --template template-client.cfg |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<!-- | |
inspired by Mozilla Webauthn documentation: https://developer.mozilla.org/en-US/docs/Web/API/Web_Authentication_API | |
copyright: 2019 Nicolas Mora <[email protected]> | |
license: MIT | |
--> | |
<title>Hmac-Secret webauthn Extension</title> | |
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/[email protected]/cbor.min.js"></script> |
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
/** | |
* | |
* gnutls_generate_pkcs12.c | |
* | |
* Generate a new RSA key | |
* Generate the associated certificate | |
* Sign the certificate with the issuer key and certificate | |
* Create the PKCS#12 structure and exports it to the file out.p12 protected with the password PASSWORD | |
* | |
* License: MIT |
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
/** | |
* | |
* resize-libav | |
* | |
* Use libav to resize an image using its swscale functions, sample code | |
* | |
* Copyright 2018 - Nicolas Mora <[email protected]> | |
* Copyright (c) 2013-2017 Andreas Unterweger | |
* | |
* This program is free software; you can redistribute it and/or |