aboutsummaryrefslogtreecommitdiff
path: root/src/libsec
Commit message (Collapse)AuthorAgeFilesLines
* all: remove $OBJTYPE from buildRuss Cox2020-12-3013-529/+3
| | | | | | | 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>
* all: remove .cvsignore filesKare Nuorteva2017-09-141-2/+0
| | | | | | | | | | Rename following .cvsignore files to .gitkeep since they are required by the build (directories must exist before build): - bin/fossil/.gitkeep - bin/fs/.gitkeep - bin/venti/.gitkeep Change-Id: I9c2865058480cffb3a4613f25e2eca1f7e5578c0
* all: linux/arm64 portAram Hăvărneanu2015-06-031-0/+4
| | | | | | | | Really trivial port. Change-Id: Ib2e3ad48df555ca4bd9339ddf79a832be895bd95 Reviewed-on: https://plan9port-review.googlesource.com/1030 Reviewed-by: Russ Cox <rsc@google.com>
* all: linux/mips portAram Hăvărneanu2015-06-031-0/+4
| | | | | | Change-Id: I0af67bc44c7bb62a8e5a47eac597367f521f1c11 Reviewed-on: https://plan9port-review.googlesource.com/1210 Reviewed-by: Russ Cox <rsc@google.com>
* 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
|
* arm: build fixesRichard Miller2011-05-181-0/+4
| | | | | | | | Get p9p to build cleanly for ARM - based on suggestions from rsc and eekee, plus a final tweak from me. Tested (a bit) on sheevaplug (ubuntu jaunty), Nokia N800 (maemo 4) and Nokia N900 (maemo 5). R=rsc CC=plan9port.codebot http://codereview.appspot.com/4524056
* SunOS fixes (thanks Aram Hăvărneanu)Russ Cox2011-05-171-2/+2
| | | | | R=rsc, rsc http://codereview.appspot.com/4271084
* 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
|
* applersc2006-04-213-1/+11
|
* use gcc because cpp sucksrsc2006-04-213-4/+2
|
* Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms.rsc2006-04-0125-220/+220
|
* sparcrsc2006-02-091-0/+4
|
* change labels to get better function boundariesrsc2005-05-122-12/+12
|
* add dsa x509rsc2005-02-131-0/+74
|
* new allocrpc interfacersc2005-02-111-6/+1
|
* continue x86-64rsc2005-01-191-0/+4
|
* checkpointrsc2005-01-141-1/+6
|
* os x changesrsc2005-01-111-1/+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
|
* Empty changelogrsc2004-05-144-6/+8
|
* asdfrsc2004-05-141-4/+0
|
* Crsc2004-05-144-0/+6
| | | | | | | little bugs . wq VS: ----------------------------------------------------------------------
* Ditto.rsc2004-05-091-9/+12
|
* It's bad form to access data *below* the stack pointer.rsc2004-05-091-16/+19
|
* Ignore unknown pragmas.wkj2004-05-031-0/+2
| | | | | Be less verbose when allocating uprocs. Don't drop core dump turds all over the place when x11 goes away.
* 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-212-2/+4
| | | | use current variable names.
* dittorsc2004-04-212-0/+8
|
* Rename the files so that we can run them through cpp.rsc2004-04-213-0/+5
|
* MD5 and SHA1 in transliterated to x86 assembler with C preprocessor goo.wkj2004-04-214-2/+471
| | | | Thanks to Brendan Connell for putting up with this nonsense.
* clean up when finished.rsc2004-04-192-2/+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-2312-0/+2916