summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2014-08-28OpenSSL_add_all_algorithms() is called from openssl_startup() - it does notJoel Sing
need to also be called from some of the applications.
2014-08-28openssl_setup() calls SSL_load_error_strings(), which happens to callJoel Sing
ERR_load_crypto_strings() - as such, we do not need to call the same function from most of the applications.
2014-08-28Add option handling with a callback function for argument processing.Joel Sing
2014-08-28Convert openssl(1) crl to new option/usage handling.Joel Sing
2014-08-28Given the usage option name/argument name width a few more characters.Joel Sing
2014-08-28Ensure that a format option argument is a known specifier.Joel Sing
2014-08-28Add option handling for ordered flags.Joel Sing
2014-08-28Add option handling for input/output formats.Joel Sing
2014-08-28Support .St -susv1 and .St -susv4. Illumos wants to use this,Ingo Schwarze
and it's illogical anyway to have -susv2 and -susv3 but not -susv4.
2014-08-28I just noticed that -Tps writes "%%CreationDate:" headers.Ingo Schwarze
That's an unwelcome leak of potentially private information. Kill it with fire.
2014-08-27Convert openssl(1) prime to the new options/usage handling.Joel Sing
2014-08-27Reset the config struct before calling options_parse(), otherwise configJoel Sing
options from the previous run stick in interactive mode.
2014-08-27Add an option type that handles argument to integer conversion.Joel Sing
2014-08-27Ensure diff -uw always produces valid output when one file doesn't endKent R. Spillner
with a newline. Issue reported by guenther@. ok guenther@
2014-08-27Implement table-driven option parsing that allows an application toJoel Sing
specify what its valid options are and where it wants them to be stored. This also allows for usage to be generated, almost for free, ensuring that the options and usage are automatically kept in sync. This will allow for a single option parsing implementation, rather than the current one-hand-rolled-option-parsing-and-random-usage-implementation per application. As a starting point, port the openssl(1) rand application to the new option parsing and usage (along with associated code clean up). With input from doug@. ok bcook@ doug@
2014-08-27Add an implementation of man(1) into the /usr/bin/mandoc binary andIngo Schwarze
provide a unified set of command line options for mandoc(1), man(1), apropos(1), and whatis(1), each option doing the same for all four. Not adding any completely new options, only extending exiting ones from one tool to the others. New options are: * apropos & whatis -acfkw (in the past, these were man(1) only) * apropos & whatis -a -IOTW (in the past, mandoc(1) only) * mandoc -ac (in the past, man(1) only) * man -IOTW (in the past, mandoc(1) only) Before we can decide whether or not we want to replace src/usr.bin/man with this implementation, considerable bugfixing, testing, and performance measurements are needed, which i'd rather do in the tree than outside. Note that these bugs only affect the new man(1) mode, existing mandoc(1), apropos(1), and whatis(1) is fine. The new functionality in mandoc(1), apropos(1), and whatis(1) is fully enabled. To play with the new man(1), you can try: # mv /usr/bin/man /usr/bin/oman # ln -s /usr/bin/mandoc /usr/bin/man Positive feedback about the general direction from sthen@ and jmc@, and deraadt@ is not against it.
2014-08-26fix SEE ALSO;Jason McIntyre
2014-08-26remove nginx referencesRobert Nagy
2014-08-26Move openssl(1) from /usr/sbin/openssl to /usr/bin/openssl, since it is notJoel Sing
a system/superuser binary. At the same time, move the source code from its current lib/libssl/src/apps location to a more appropriate home under usr.bin/openssl. ok deraadt@ miod@
2014-08-26Unify console and CGI section titles, bringing them closer to groff,Ingo Schwarze
is an attempt to reduce confusion for users switching between media and between different operating systems. Not using the groff title for section 4 is intentional, it is just too awful ("Kernel Interfaces Manual"), and the difference from sections 2 and 9 would be too hard to see. Positive feedback from at least deraadt@ millert@ bluhm@ jca@. Previously also agreed with the general direction: jmc@ Nick@. The title for 3p was polished by bluhm@. The existing mismatches were originally noticed by jsg@.
2014-08-25you broke the ramdisk builds...Theo de Raadt
2014-08-25Don't allow pasting into input-disabled panes, from Anish R Athalye.Nicholas Marriott
2014-08-25When using a proxy for an https connection, validate the cert hostnameJeremie Courreges-Anglas
against the target hostname, not the proxy hostname. Issue reported by dlg@, fix by Alex Wilson on tech@, tweaks by me. No reply from tech@
2014-08-25Delete secret or secret-derived data with explicit_bzero.Doug Hogan
concept ok deraadt@ diff looks ok tedu@
2014-08-24Oops. Garbage collect unused variable.Ingo Schwarze
2014-08-24When support for bold italic font was added to the parsers and to theIngo Schwarze
generic parts of the formatters some time ago, the PostScript- and PDF-specific part of the formatters was neglected. Now pascal@ reports that mandoc -Tps throws an assertion on perl(1), apparently because that manual actually uses bold italic font. So here is an overdue implementation of bold italic font support for PostScript and PDF output.
2014-08-23Fix fd leak when fdopen fails.doug
ok schwarze@
2014-08-22don't need this file, only the mod versionTed Unangst
2014-08-22typo; noticed by jmc@ some time agoIngo Schwarze
2014-08-21Bugfix: make whatis(1) case-insensitive again.Ingo Schwarze
The traditional whatis(1) was case-insensitve and it's still documented that way, that but apparently got broken with or after the switch.
2014-08-21Fix double free. ok guenther@Jeremie Courreges-Anglas
2014-08-21limit CGI process execution time to make REDoS attacks less effective;Ingo Schwarze
attack surface pointed out by Sebastien Marie
2014-08-21Right after .Fl, a middle delimiter triggers an empty scope,Ingo Schwarze
just like a closing delimiter. This didn't work in groff-1.15, but it now works in groff-1.22. After being closed by delimiters, .Nm scopes do not reopen. Do not suppress white space after .Fl if the next node is a text node on the same input line; that can happen for middle delimiters. Fixing an issue reported by jmc@.
2014-08-21Free resources on error in mkstemp and fdopendoug
ok djm@
2014-08-20Remove userland bits related to the crypto(4) interface; ok deraadtMike Belopuhov
2014-08-20djm how did you make a typo like that...Theo de Raadt
2014-08-19When dumping the server configuration (sshd -T), print correct KEX,Damien Miller
MAC and cipher defaults. Spotted by Iain Morgan
2014-08-19~-expand lcd pathsDamien Miller
2014-08-19Let's talk about obstacles you face when trying to pull off a partial tedu@.Ingo Schwarze
2014-08-19Do not dereference a NULL pointer if a .Bl macro hasIngo Schwarze
no -type, -width, -offset or -compact arguments whatsoever; this got broken in mdoc_validate.c rev. 1.156. While here, sort headers.
2014-08-19libroff depends on libmandoc and so libmandoc should be included first.Daniel Dickman
this change makes the code slightly more portable by removing a gcc extension (incomplete enum types) which is not part of ISO C. ok schwarze@
2014-08-19add -4 and -6 flags for saying if you want to force ipv4 or ipv6David Gwynne
respectively. tweaks from jmc@ ok djm@
2014-08-18Fix read access to uninitialized memory found by kristaps@ with valgrind,Ingo Schwarze
patch from kristaps@. Theoretically, this could lead to a buffer overrun and segfault, but only for very long output lines (about 1000 charecters) of exactly the right length or if by ill chance, the complete unused, uninitialized tail of the line output buffer (at least 1000 characters total length) would contain all blank characters. Anyway, the uninitialized data read wasn't used for anything.
2014-08-18When the first child of the node being validated gets deleted duringIngo Schwarze
validation, man_node_unlink() switches to MAN_NEXT_CHILD. After that, we have to switch back to MAN_NEXT_SIBLING after completing validation, or subsequent parsing would add content into an already closed node, clobbering potentially existing children, causing information loss and a memory leak. Bug found by kristaps@ with valgrind in groff(7) on Mac OS X. Note that the switch back must be conditional, for if the node being validated itself gets deleted, we must *not* go to MAN_NEXT_SIBLING, which would not only yield wrong results in general but also crash in malformed manuals having an empty paragraph before the first .SH, for example OpenBSD c++filt(1). While here, add the missing <sys/types.h> as required before mandoc.h.
2014-08-18kristaps@ found this with valgrind, merge his patch from bsd.lv:Ingo Schwarze
Fix a corner case where \H<nil> (where <nil> is the \0 character) would cause mandoc_escape() to read past the end of an allocated string. Found when a script scanning of all Mac OSX manuals accidentally also scanned binary (gzip'd) files, discussed with schwarze@ on tech@mdocml.
2014-08-18Add fancy printing of ktrace()'s ops argumentPhilip Guenther
mquery() has the exact same argument layout as mmap(), so share the case Fix a couple brace placement glitches
2014-08-17Use %#o instead of %#x for mode_tPhilip Guenther
2014-08-17Display symbolicly the mode argument of mkdir, mkfifo, mknod, and umaskPhilip Guenther
2014-08-17typo, sorryIngo Schwarze
2014-08-17While all current callers pass valid data to ascii_hspan() only,Ingo Schwarze
it's safer to assume incoming enum data might be invalid and catch it instead of happily returning an unitialized int. No functional change right now.