aboutsummaryrefslogtreecommitdiff
path: root/src/libsec/port
Commit message (Collapse)AuthorAgeFilesLines
* all: remove $OBJTYPE from buildRuss Cox2020-12-301-1/+2
| | | | | | | Now that we assume pthreads, the only assembly left is in libmp and libsec. We only ever added assembly for 386. The portable C code is fine for plan9port.
* Trivial changes: whitespace and modes.Dan Cross2020-01-1018-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>
* libsec: avoid undefined CXi Wang2013-03-191-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
* fix clang warnings reported by Tuncer AyazRuss Cox2012-10-211-1/+1
| | | | | R=rsc http://codereview.appspot.com/6744054
* libsec: fix dsagen 64-bit bugRuss Cox2011-10-051-1/+1
|
* probably_prime: run more than one Miller-Rabin roundRuss Cox2010-03-111-12/+17
| | | | | R=rsc http://codereview.appspot.com/462041
* libsec: update primetest to use mpfmtRuss Cox2010-03-111-1/+1
| | | | | R=rsc http://codereview.appspot.com/464041
* libsec: use intptr to silence 64-bit warning (Michael Teichgräber)Russ Cox2008-03-061-1/+1
|
* Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc2006-04-0125-220/+220
|
* add dsa x509rsc2005-02-131-0/+74
|
* new allocrpc interfacersc2005-02-111-6/+1
|
* more little compile fixesrsc2004-12-281-2/+2
|
* silence various warningsrsc2004-12-271-0/+4
|
* add portdatersc2004-12-261-0/+56
|
* changes from plan 9. some clean-up.rsc2004-12-265-20/+91
|
* Libsec doesn't compile without a reduce script, either.wkj2004-04-211-0/+13
|
* more tomfoolery.rsc2004-04-211-1/+0
| | | | i bet mk can't read the mac os or sun os archives.
* make scripts work with more shells,rsc2004-04-211-1/+3
| | | | use current variable names.
* clean up when finished.rsc2004-04-191-1/+0
| | | | | don't set PLAN9 don't set PLAN9
* SunOS can rot in hell.rsc2004-03-261-1/+1
|
* Add most of libsec.rsc2004-03-2147-0/+9625
|
* Small tweaksrsc2004-03-215-28/+45
| | | | Lots of new code imported.
* More tweaks on Linux and Solaris.rsc2003-11-251-1/+1
|
* Make things build on FreeBSD again.rsc2003-11-232-1/+2
|
* add libsecrsc2003-11-2311-0/+2906