aboutsummaryrefslogtreecommitdiff
path: root/src/libsec/port
AgeCommit message (Collapse)AuthorFilesLines
2020-01-10Trivial changes: whitespace and modes.Dan Cross18-420/+415
Remote whitespace at the ends of lines. Remove blank lines from the ends of files. Change modes on source files so that they are not executable. Signed-off-by: Dan Cross <cross@gajendra.net>
2013-03-19libsec: avoid undefined CXi Wang1-2/+1
gcc compiles `p + length < p' into 'length < 0' since pointer overflow is undefined behavior in C. This breaks the check against a large `length'. Use `length > pend - p' instead. There's no need to check `length < 0' since `length' is from length_decode() and should be non-negative. === Try the simplified code. void bar(void); void foo(unsigned char *p, int length) { if (p + length < p) bar(); } $ gcc -S -o - t.c -O2 ... foo: .LFB0: .cfi_startproc testl %esi, %esi js .L4 rep ret .L4: jmp bar .cfi_endproc Clearly `p' is not used at all. R=rsc CC=plan9port.codebot https://codereview.appspot.com/7231069
2012-10-21fix clang warnings reported by Tuncer AyazRuss Cox1-1/+1
R=rsc http://codereview.appspot.com/6744054
2011-10-05libsec: fix dsagen 64-bit bugRuss Cox1-1/+1
2010-03-11probably_prime: run more than one Miller-Rabin roundRuss Cox1-12/+17
R=rsc http://codereview.appspot.com/462041
2010-03-11libsec: update primetest to use mpfmtRuss Cox1-1/+1
R=rsc http://codereview.appspot.com/464041
2008-03-06libsec: use intptr to silence 64-bit warning (Michael Teichgräber)Russ Cox1-1/+1
2006-04-01Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc25-220/+220
2005-02-13add dsa x509rsc1-0/+74
2005-02-11new allocrpc interfacersc1-6/+1
2004-12-28more little compile fixesrsc1-2/+2
2004-12-27silence various warningsrsc1-0/+4
2004-12-26add portdatersc1-0/+56
2004-12-26changes from plan 9. some clean-up.rsc5-20/+91
2004-04-21Libsec doesn't compile without a reduce script, either.wkj1-0/+13
2004-04-21more tomfoolery.rsc1-1/+0
i bet mk can't read the mac os or sun os archives.
2004-04-21make scripts work with more shells,rsc1-1/+3
use current variable names.
2004-04-19clean up when finished.rsc1-1/+0
don't set PLAN9 don't set PLAN9
2004-03-26SunOS can rot in hell.rsc1-1/+1
2004-03-21Add most of libsec.rsc47-0/+9625
2004-03-21Small tweaksrsc5-28/+45
Lots of new code imported.
2003-11-25More tweaks on Linux and Solaris.rsc1-1/+1
2003-11-23Make things build on FreeBSD again.rsc2-1/+2
2003-11-23add libsecrsc11-0/+2906