summaryrefslogtreecommitdiff
path: root/sys/lib/libsa
AgeCommit message (Collapse)Author
2016-11-27Add missing OpenBSD CVS tagsReyk Floeter
2016-11-25Fix signedness warnings with careful casts and replace a re-defined variable.Reyk Floeter
OK krw@
2016-09-18Add bcrypt pbkdf support to the softraid crypto boot loader code.Joel Sing
Based on a diff from djm@
2016-09-18Correctly handle short read()s in the libsa gzip handling lseek(). AlsoJoel Sing
avoid masking the errno from a failed read(). ok guenther@ tom@
2016-09-17move the .SUNW_ctf section name definition to exec_elf.h and document it in ↵Jasper Lievisse Adriaanse
elf(5) feedback from guenther@ ok guenther@ kettenis@
2016-09-16unifdef SAVE_MEMORY which is no longer set nor usedJasper Lievisse Adriaanse
ok deraadt@ millert@
2016-09-13when loading the kernel binary, also load the .SUNW_ctf section when present,Jasper Lievisse Adriaanse
which holds the CTF data. ok mpi@
2016-09-11Provide initial libsa softraid - this is currently just the data structuresJoel Sing
and softraid crypto key handling code.
2016-09-10Add bcrypt_pbkdf to libsa, from libutil. This will soon allow the bootJoel Sing
loader to support softraid crypto volumes using bcrypt pbkdf.
2016-09-10Add blowfish to libsa, taken from libc - needed for bcrypt_pbkdf.Joel Sing
2016-09-10Add sha2 to libsa, taken from libc - needed for bcrypt_pbkdf.Joel Sing
2016-09-10Rename libsa pbkdf2.c to pkcs5_pbkdf2.c so that we match libutil.Joel Sing
2016-09-10Sync libsa pkcs5_pbkdf2() with libutil.Joel Sing
2016-08-27Declare lseek() instead of assuming it'll be provided elsewherePhilip Guenther
ok deraadt@
2016-03-14Change a bunch of (<blah> *)0 to NULL.Kenneth R Westerback
ok beck@ deraadt@
2015-11-16Replace unbounded gets() in libsa with getln() which takes a buffer size,Miod Vallat
and convert all gets() users. ok deraadt@
2015-10-26(char *)0 -> NULLmmcc
ok tedu@
2015-10-26Cast isdigit()'s argument to unsigned char.mmcc
ok guenther@
2015-09-18Remove orphaned files.Miod Vallat
2015-09-14unify free(NULL,size) behaviour by allowing passing NULLSebastien Marie
ok millert@ jasper@
2015-09-02Initial commit of uefi boot loader of OpenBSD.YASUOKA Masahiko
ok deraadt yuo
2015-08-15When sendrecv() returns -1, have rpc_call() return -1 as well. Otherwise, dueMiod Vallat
to the cast to unsigned, it fails the error test and returns a bogus partial read to the caller, which is painful to debug.
2015-08-15Use signed variables to store the result of rpc_call().Miod Vallat
2015-07-17Remove {LOAD,COUNT}_TEXTA from libsa loadfile, it only made sense for a.outMiod Vallat
kernels and we no longer have any.
2015-07-17Adjust type of link_len to match type of di_size in underlying struct, andKent R. Spillner
change type of len to size_t to match strlen(3) result. Drop unneeded casts. u_int64_t is overkill because the actual size is still limited to SYMLINK_MAX but it is probably better to match the filesystem types. ok miod@, guenther@
2015-07-16Expand ancient NTOHL/NTOHS/HTONS/HTONL macros.Martin Pieuchot
ok guenther@, henning@
2015-06-14Fix 1.26; kdoprnt() should not attempt to invoke va_end() at all, it's theMiod Vallat
caller's responsibility to do so.
2015-05-19Extend the libsa loadfile(9) granularity to tell apart randomness from the restMiod Vallat
of the kernel, and extend the array filled by loadfile to report the location of the randomness area. This doesn't introduce any change for bootblocks (save for a slightly larger stack usage due to the larger array), for the new {LOAD,COUNT}_RANDOM bits are included in the {LOAD,COUNT}_ALL masks everything uses or computes from.
2015-03-10Remove unused static local variable; mickey@Miod Vallat
2015-03-10Invoke va_end() before returning, rather than in an unreachable place; mickey@Miod Vallat
2015-02-05Include sys/stdint.h for SIZE_MAX. OK deraadt@ miod@Todd C. Miller
2014-11-20Yet more #include de-duplication.Kenneth R Westerback
ok deraadt@ tedu@
2014-11-19Sprinkle const whenever possible.Miod Vallat
2014-11-19Move {recv,send}udp() out of net.c into their own file; to be used shortly.Miod Vallat
Add the new files to the few md libsa builds which require it.
2014-11-19Ansify.Miod Vallat
2014-11-19Make the past-ELAST libsa-specific errno values contiguous.Miod Vallat
2014-11-19Remove braindead prototype for a nonexistent function.Miod Vallat
2014-11-19Sprinkle const in static (internal) routines.Miod Vallat
2014-11-18Nuke yet more obvious #include duplications.Kenneth R Westerback
ok miod@
2014-10-26Read the section header string table in the boot blocks' memory, not in theMiod Vallat
loaded image area.
2014-10-09ddb: add support for DWARF line number decodingMatthew Dempsky
This allows ddb's "trace" command to include file and line numbers: ddb{0}> trace Debugger() at Debugger+0x9 [../../../../arch/amd64/amd64/db_interface.c:405] ddb_sysctl() at ddb_sysctl+0x1b4 [../../../../ddb/db_usrreq.c:104] sys___sysctl() at sys___sysctl+0x216 [../../../../kern/kern_sysctl.c:229] syscall() at syscall+0x297 [../../../../sys/syscall_mi.h:84] --- syscall (number 202) --- end of kernel end trace frame: 0x7f7ffffcf1d7, count: -4 acpi_pdirpa+0x4117aa: For this to work, it requires using a new version of boot(8), and booting a kernel with the .debug_line section present (e.g., building with ``makeoptions DEBUG="-g"'' and then booting the bsd.gdb kernel instead of the stripped bsd kernel). Still a WIP, but no failure reports yet. Committing so further development and testing can happen in tree. prodding deraadt, guenther, mlarkin ok mpi
2014-07-22use NULL instead of (foo *)0; Kent R. SpillnerTheo de Raadt
2014-07-22remove unneccessary casts; Kent R. SpillnerTheo de Raadt
2014-07-16zap trailing newlines; "go for it" deraadtOkan Demirmen
2014-07-13Stop using old n_long and n_short types.Martin Pieuchot
2014-07-13move putchar() into libsaJasper Lievisse Adriaanse
"sure" miod@
2014-07-12move getchar() into libsa where applicableJasper Lievisse Adriaanse
ok miod@
2014-06-10Rearrange the inequality.Brad Smith
Pointed out by LLVM. tftp.c:331:17: error: comparison of unsigned expression < 0 is always false From NetBSD ok miod@
2014-04-29Fix typo: d_addrt -> daddr_tDavid Coppa
ok bmercer@
2014-04-16Add ufs2 support and get one step closer to making ffs2 bootable. This work ↵Brandon Mercer
was done by Pedro Martelletto for bitrig. One small tweak to make it buildable with -Werror. "Please commit" miod@