guenther
e007f40f71
Eliminate the last of the LINTEDn and PRINTFLIKEn comments. In one
case, by deleting some useless '& of an array' we also eliminate the need
for the casts which prompted the original lint warnings
ok deraadt@
9 years ago
guenther
f671bb814a
lint is dead: delete useless LINTLIBRARY comments
ok millert@
9 years ago
guenther
8609f86bc8
Don't wrap initialized variables: binutils appears to be mishandling them
on arm and m88k
problems with optind observed by jsg@
9 years ago
schwarze
6201910f6e
Remove useless quoting from .Fo and .Fn function names, to prevent
development of a cargo cult in case people look at existing files
for examples. This achieves a consistent .Fo and .Fn quoting style
across the whole tree.
9 years ago
schwarze
0f5a134fe9
in the SYNOPSIS, make void function arguments explicit
9 years ago
guenther
e724eb6002
Only two of the *rand48.c files need <math.h>, so just #include it in them
9 years ago
schwarze
59ebc4a004
use .Va for global variables, and .Vt where the type is included
9 years ago
guenther
8924f66047
Remove cast of int* to int*
9 years ago
doug
aefcb65105
Temporarily revive MD4 for MS CHAP support.
9 years ago
doug
b0734ad3d4
Crank major version due to removal of SHA-0 and MD4 from libcrypto.
9 years ago
doug
9193415b6f
Remove MD4 support from LibreSSL.
MD4 should have been removed a long time ago. Also, RFC 6150 moved it to
historic in 2011. Rides the major crank from removing SHA-0.
Discussed with many including beck@, millert@, djm@, sthen@
ok jsing@, input + ok bcook@
9 years ago
doug
6561ba3b89
Remove SHA-0 support.
SHA-0 was withdrawn shortly after publication 20 years ago and replaced
with SHA-1. This will require a major crank.
ok bcook@, jsing@
9 years ago
guenther
ec1a04d68c
For now, permit overriding of the malloc family, to make emacs happy
9 years ago
guenther
08d5782520
Wrap <pwd.h> so that calls go direct and the symbols are all weak.
Hide bcrypt_autorounds(), prefixing with an underbar for static builds.
9 years ago
guenther
1fc79c3ad9
Overshot w/PROTO_DEPRECATED: seed48_deterministic() is used internally
9 years ago
millert
adeece9d95
The number of rounds is just two digits in the salt. We've already
verified that they are there via isdigit() so we can convert from
ASCII to an int without using atoi(). OK guenther@ deraadt@
9 years ago
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