jsing
66db3f0bbc
Merge ech_ossl.c into ech_key.c - not much point having one file with a
four line function and a tonne of license text.
ok beck@
9 years ago
jsing
c207914835
Nuke openssl/e_os2.h, since nothing should be using it.
ok deraadt@ "hurray! finally!" miod@ "Yay!" sthen@
9 years ago
miod
6937aca7bc
Add a new interface, OPENSSL_cpu_caps(), to return the currently running
cpu's specific hardware capabilities users of libcrypto might be interested
in, as an integer value. This deprecates the existing OPENSSL_ia32cap()
macro and the OPENSSL_ia32cap_loc() function (which returns the pointer so
that you can mess with stuff you shouldn't mess with).
Interpreting the value returned by OPENSSL_cpu_caps() is, of course,
machine-dependent.
Minor version bump for libcrypto.
ok beck@ jsing@
9 years ago
guenther
c8272cfe98
Wrap <stdlib.h> so that calls go direct and the symbols not in the
C standard are all weak.
Apply __{BEGIN,END}_HIDDEN_DECLS to gdtoa{,imp}.h, hiding the
arch-specific __strtorx, __ULtox_D2A, __strtorQ, __ULtoQ_D2A symbols.
9 years ago
guenther
0228ab119c
__strsignal() is now declared in hidden/signal.h
9 years ago
guenther
82b9f1a0d5
Wrap <inttypes.h> and finish wrapping of <wchar.h> so that calls go direct
and the symbols not in the C standard are weak
9 years ago
guenther
c9c56d2879
Wrap <unistd.h> so that internal calls go direct and they're all weak symbols
Delete unused 'fd' argument from internal function oldttyname()
9 years ago
guenther
2682fe544f
Wrap <getopt.h> to make the functions weak and make access to the initialized
variables go direct. (Common variables cannot be aliased.)
9 years ago
miod
9c1e4607bc
Pass "openbsd" instead of "openbsd-elf" as the "flavour" to the perl assembler
machinery. OpenBSD has never been not ELF on amd64, and changing this will
actually make -portable life slightly easier in the near future.
9 years ago
deraadt
31a603a934
unify files further
9 years ago
guenther
c34714da97
Wrap blowfish, sha*, md5, and rmd160 so that internal calls go direct
ok deraadt@
9 years ago
bcook
2c1adf355f
Add support for building arc4random with MSVC.
By default, MSVC's stdlib.h defines min(), so we need to spell out something
less common to avoid picking it up.
ok deraadt@ beck@ miod@
9 years ago
guenther
02ef5130b7
Pull in namespace.h when building all .c files using gcc's -include option,
so that we can provide asm labels for the memcpy/memset/__stack_smash_handler
calls that it generates ab initio. Eliminate direct #includes of it. Make
sure it's a dependency of all objects (unnecessary for asm, but close enough).
ok deraadt@
9 years ago
schwarze
558404f2f1
reduce more .Nd to one line and kill more .Tn
9 years ago
schwarze
a9afc2531c
reduce .Nd to one line and kill .Tn while here
9 years ago
schwarze
b0143d710b
missing commas at the end of .Nm lines in the NAME section
9 years ago
guenther
4f5bcc4530
Fix aliasing of sys_errlist, sys_nerr, sys_siglist, and sys_signame
to eliminate duplicate copies of the tables and get direct access internally
ok kettenis@ deraadt@
9 years ago
guenther
6c7e0ac243
Use new framework for wrapping cat{open,gets,close}(), eliminating
_cat* in the process.
ok kettenis@
9 years ago
guenther
3e2a03de0a
Add framework for resolving (pun intended) libc namespace issues, using
wrapper .h files and asm labels to let internal calls resolve directly and
not be overridable or use the PLT. Then, apply that framework to most of
the functions in stdio.h, string.h, err.h, and wchar.h. Delete the
should-have-been-hidden-all-along _v?(err|warn)[cx]? symbols while here.
tests clean on i386, amd64, sparc64, powerpc, and mips64
naming feedback from kettenis@ and millert@
ok kettenis@
9 years ago
kettenis
ba19740f18
Remove lies about openpty(4) searching for a free pseudo-tty by iterating
through all existing pseudo-tty devices in /dev.
9 years ago
guenther
8858b239f2
Move the __rand48_* declarations into rand48.h, and then hide both them
and __dorand48() and __rand48_deterministic
ok deraadt@
9 years ago
deraadt
8e631f698c
unify versions, so they are easier to diff.
9 years ago
deraadt
263ac3037d
KNF
9 years ago
deraadt
70232307a6
All these files include <stdlib.h>, so do not need to cast
malloc/calloc/realloc* returns.
9 years ago
deraadt
c2feb81bea
remove cast of malloc(), since stdlib.h is included
9 years ago
tedu
a295a8a9de
call it bcrypt in the man page too
9 years ago
tedu
1b0313eadb
permit "bcrypt" as an alias for "blowfish". this is, after all, what
99% of the world calls it.
allow just "bcrypt" without params to mean auto-tune ("bcrypt,a").
default remains 8 rounds (for now)
ok deraadt
9 years ago
doug
bb4ad98053
Remove OpenSSL engine RSAX.
OpenSSL stopped building it last year and removed it this year.
Based on OpenSSL commit c436e05bdc
.
Also cranked major version in libcrypto, libssl and libtls.
"fine with me" bcook@ miod@
9 years ago
nicm
0f67cd6d58
Handle malloc(0) returning NULL (which can happen on some other
platforms) by explicitly making imsg->data = NULL when there is no
data. ok deraadt
9 years ago
jeremy
a0ab23b345
Unbreak, add errno header
OK tedu@
9 years ago
tedu
8cf39d5a4a
set errno in null cases, just in case.
9 years ago
tedu
ece73ab6e1
standards compliant error return (null). will make ruby happier, at least.
ok deraadt jeremy
9 years ago
sobrado
f38d8c1811
typo in manual page.
ok jsing@
9 years ago
nicm
cac6c14d57
Use memset instead of bzero for better portability.
ok gilles claudio doug
9 years ago
deraadt
4db28c17f3
typo in embedded code block; from Ben Cornett
9 years ago
brynet
1493b9464e
bzero cmsgbuf before using it, silences valgrind warnings.
henning@ "sure"
9 years ago
doug
2ad9757f45
Fix pointer to unsigned long conversion.
bcook@ notes that this check really only impacted 64-bit Windows. Also,
changed the check to be unsigned for consistency.
ok bcook@
9 years ago
millert
7b99cfa53d
Just return if nmemb is 0. Avoids a NULL dereference and is
consistent with the behavior of the other libc sort functions.
OK deraadt@
9 years ago
doug
d205ffb326
Crank major for libcrypto, ssl and tls due to MDC-2DES removal.
ok miod@ jsing@
9 years ago
doug
d353d6b2bc
Remove obsolete MDC-2DES from libcrypto.
ok deraadt@ jsing@ miod@
9 years ago
millert
482e9aac5b
Remove needless casts. There's no reason to cast delim to char *
when we can just make spanp const char * to match it. OK deraadt@
9 years ago
bcook
2236cfa979
Disable ENGINE_load_dynamic (dynamic engine support).
We do not build, test or ship any dynamic engines, so we can remove the dynamic
engine loader as well. This leaves a stub initialization function in its place.
ok beck@, reyk@, miod@
9 years ago
bcook
fd9b2358f2
Remove unneeded sys/sysctl.h on linux.
This only provides the sysctl wrapper in glibc, which we do not use and is not available in other libc implementations for Linux. Thanks to ncopa from github.
9 years ago
reyk
13bb9544ea
The correct semantic is to check msgbuf_write() for <= 0, not just < 0.
Fix one occurence in imsg_flush() and clarify it the man page.
Discussed with at least blambert@ jsg@ yasuoka@.
OK gilles@
9 years ago
millert
157c2c8d07
Do not assume that asprintf() clears the pointer on failure, which
is non-portable. Also add missing asprintf() return value checks.
OK deraadt@ guenther@ doug@
9 years ago
kettenis
57925aeae3
Record inter-library dependencies between libcrypto, libssl and libtls
9 years ago
millert
4ab11614ee
Make index/rindex weak aliases of strchr/strrchr since they are not
part of the ISO C standard and have also been dropped from POSIX.
OK guenther@ kettenis@
9 years ago
bluhm
4498258510
If crypt(3) is called with an unknown setting, return NULL instead
of some undefined value.
OK tedu@
9 years ago
guenther
69ecb65582
Add dlclose(3) to SEE ALSO
ok millert@ jmc@ schwarze@
9 years ago
guenther
726c811e97
When checking flags that will be passed to open(), test the O_ACCMODE portion
separately to avoid false negatives.
ok miod@ millert@
9 years ago