mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-07 23:13:34 +00:00
Your redbean can now interoperate with clients that require TLS crypto. This is accomplished using a protocol polyglot that lets us distinguish between HTTP and HTTPS regardless of the port number. Certificates will be generated automatically, if none are supplied by the user. Footprint increases by only a few hundred kb so redbean in MODY=tiny is now 1.0mb - Add lseek() polyfills for ZIP executable - Automatically polyfill /tmp/FOO paths on NT - Fix readdir() / ftw() / nftw() bugs on Windows - Introduce -B flag for slower SSL that's stronger - Remove mbedtls features Cosmopolitan doesn't need - Have base64 decoder support the uri-safe alternative - Remove Truncated HMAC because it's forbidden by the IETF - Add all the mbedtls test suites and make them go 3x faster - Support opendir() / readdir() / closedir() on ZIP executable - Use Everest for ECDHE-ECDSA because it's so good it's so good - Add tinier implementation of sha1 since it's not worth the rom - Add chi-square monte-carlo mean correlation tests for getrandom() - Source entropy on Windows from the proper interface everyone uses We're continuing to outperform NGINX and other servers on raw message throughput. Using SSL means that instead of 1,000,000 qps you can get around 300,000 qps. However redbean isn't as fast as NGINX yet at SSL handshakes, since redbean can do 2,627 per second and NGINX does 4.3k Right now, the SSL UX story works best if you give your redbean a key signing key since that can be easily generated by openssl using a one liner then redbean will do all the things that are impossibly hard to do like signing ecdsa and rsa certificates that'll work in chrome. We should integrate the let's encrypt acme protocol in the future. Live Demo: https://redbean.justine.lol/ Root Cert: https://redbean.justine.lol/redbean1.crt
98 lines
2.8 KiB
C
98 lines
2.8 KiB
C
#ifndef COSMOPOLITAN_LIBC_SYSV_CONSTS_SIG_H_
|
|
#define COSMOPOLITAN_LIBC_SYSV_CONSTS_SIG_H_
|
|
#include "libc/runtime/symbolic.h"
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
extern const long SIGABRT;
|
|
extern const long SIGALRM;
|
|
extern const long SIGBUS;
|
|
extern const long SIGCHLD;
|
|
extern const long SIGCONT;
|
|
extern const long SIGFPE;
|
|
extern const long SIGHUP;
|
|
extern const long SIGILL;
|
|
extern const long SIGINT;
|
|
extern const long SIGIO;
|
|
extern const long SIGIOT;
|
|
extern const long SIGKILL;
|
|
extern const long SIGPIPE;
|
|
extern const long SIGPOLL;
|
|
extern const long SIGPROF;
|
|
extern const long SIGPWR;
|
|
extern const long SIGQUIT;
|
|
extern const long SIGRTMAX;
|
|
extern const long SIGRTMIN;
|
|
extern const long SIGSEGV;
|
|
extern const long SIGSTKFLT;
|
|
extern const long SIGSTKSZ;
|
|
extern const long SIGSTOP;
|
|
extern const long SIGSYS;
|
|
extern const long SIGTERM;
|
|
extern const long SIGTRAP;
|
|
extern const long SIGTSTP;
|
|
extern const long SIGTTIN;
|
|
extern const long SIGTTOU;
|
|
extern const long SIGUNUSED;
|
|
extern const long SIGURG;
|
|
extern const long SIGUSR1;
|
|
extern const long SIGUSR2;
|
|
extern const long SIGVTALRM;
|
|
extern const long SIGWINCH;
|
|
extern const long SIGXCPU;
|
|
extern const long SIGXFSZ;
|
|
extern const long SIGEMT;
|
|
|
|
extern const long SIG_ATOMIC_MIN;
|
|
extern const long SIG_BLOCK;
|
|
extern const long SIG_SETMASK;
|
|
extern const long SIG_UNBLOCK;
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#define SIGABRT LITERALLY(6)
|
|
#define SIGALRM LITERALLY(14)
|
|
#define SIGBUS SYMBOLIC(SIGBUS)
|
|
#define SIGCHLD SYMBOLIC(SIGCHLD)
|
|
#define SIGCONT SYMBOLIC(SIGCONT)
|
|
#define SIGFPE LITERALLY(8)
|
|
#define SIGHUP LITERALLY(1)
|
|
#define SIGILL LITERALLY(4)
|
|
#define SIGINT LITERALLY(2)
|
|
#define SIGIO SYMBOLIC(SIGIO)
|
|
#define SIGIOT LITERALLY(6)
|
|
#define SIGKILL LITERALLY(9)
|
|
#define SIGPIPE LITERALLY(13)
|
|
#define SIGPOLL SYMBOLIC(SIGPOLL)
|
|
#define SIGPROF LITERALLY(27)
|
|
#define SIGPWR SYMBOLIC(SIGPWR)
|
|
#define SIGQUIT LITERALLY(3)
|
|
#define SIGRTMAX SYMBOLIC(SIGRTMAX)
|
|
#define SIGRTMIN SYMBOLIC(SIGRTMIN)
|
|
#define SIGSEGV LITERALLY(11)
|
|
#define SIGSTKFLT SYMBOLIC(SIGSTKFLT)
|
|
#define SIGSTKSZ SYMBOLIC(SIGSTKSZ)
|
|
#define SIGSTOP SYMBOLIC(SIGSTOP)
|
|
#define SIGSYS SYMBOLIC(SIGSYS)
|
|
#define SIGTERM LITERALLY(15)
|
|
#define SIGTRAP LITERALLY(5)
|
|
#define SIGTSTP SYMBOLIC(SIGTSTP)
|
|
#define SIGTTIN LITERALLY(21)
|
|
#define SIGTTOU LITERALLY(22)
|
|
#define SIGUNUSED SYMBOLIC(SIGUNUSED)
|
|
#define SIGURG SYMBOLIC(SIGURG)
|
|
#define SIGUSR1 SYMBOLIC(SIGUSR1)
|
|
#define SIGUSR2 SYMBOLIC(SIGUSR2)
|
|
#define SIGVTALRM LITERALLY(26)
|
|
#define SIGWINCH LITERALLY(28)
|
|
#define SIGXCPU LITERALLY(24)
|
|
#define SIGXFSZ LITERALLY(25)
|
|
#define SIGEMT SYMBOLIC(SIGEMT)
|
|
|
|
#define SIG_ATOMIC_MIN SYMBOLIC(SIG_ATOMIC_MIN)
|
|
#define SIG_BLOCK SYMBOLIC(SIG_BLOCK)
|
|
#define SIG_SETMASK SYMBOLIC(SIG_SETMASK)
|
|
#define SIG_UNBLOCK SYMBOLIC(SIG_UNBLOCK)
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_SYSV_CONSTS_SIG_H_ */
|