aboutsummaryrefslogtreecommitdiff
path: root/bin/ed/ed.h
Commit message (Collapse)AuthorAgeFilesLines
* Drop ed(1) "crypto"Conrad Meyer2018-11-041-12/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | You should not be using DES. You should not have been using DES for the past 30 years. The ed DES-CBC scheme lacked several desirable properties of a sealed document system, even ignoring DES itself. In particular, it did not provide the "integrity" cryptographic property (detection of tampering), and it treated ASCII passwords as 64-bit keys (instead of using a KDF like scrypt or PBKDF2). Some general approaches ed(1) users might consider to replace the removed DES mode: 1. Full disk encryption with something like AES-XTS. This is easy to conceptualize, design, and implement, and it provides confidentiality for data at rest. Like CBC, it lacks tampering protection. Examples include GELI, LUKS, FileVault2. 2. Encrypted overlay ("stackable") filesystems (EncFS, PEFS?, CryptoFS, others). 3. Native encryption at the filesystem layer. Ext4/F2FS, ZFS, APFS, and NTFS all have some flavor of this. 4. Storing your files unencrypted. It's not like DES was doing you much good. If you have DES-CBC scrambled files produced by ed(1) prior to this change, you may decrypt them with: openssl des-cbc -d -iv 0 -K <key in hex> -in <inputfile> -out <plaintext> Reviewed by: allanjude, bapt, emaste Sponsored by: Dell EMC Isilon Differential Revision: https://reviews.freebsd.org/D17829 Notes: svn path=/head/; revision=340132
* ed(1): Prevent possible overflows during allocation.Pedro F. Giffuni2016-12-121-2/+2
| | | | | | | | | | Make sure the parameters used for malloc(3) can hold size_t sizes. This should help ed(1) handle bigger data in the future. MFC after: 2 weeks Notes: svn path=/head/; revision=309873
* More -Wmissing-variable-declarations fixes.Ed Schouten2012-10-191-0/+6
| | | | | | | | | | | | | | | | | | | In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'. Notes: svn path=/head/; revision=241737
* /*- or .\"- or #- to begin license clauses.Warner Losh2005-01-101-1/+1
| | | | Notes: svn path=/head/; revision=139969
* Modernise. Use libcrypto for DES instead of libcipher.Mark Murray2003-06-021-7/+12
| | | | Notes: svn path=/head/; revision=115717
* Fix some easy WARNS.Mark Murray2002-07-311-2/+2
| | | | Notes: svn path=/head/; revision=101093
* We have a place for extern declarations of global variables in ed.h, do notJuli Mallett2002-06-201-0/+2
| | | | | | | use main() to do it locally. Notes: svn path=/head/; revision=98465
* o __P has been reovedWarner Losh2002-02-021-88/+73
| | | | | | | | | | | | | | | o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are. o gc some #ifdef sun ... #endif code Approved by: arch@, new style(9) Notes: svn path=/head/; revision=90109
* o Correctly define rcsid.Mike Barcroft2001-08-061-12/+12
| | | | | | | | | | | | | | o Add consts where appropriate. o Rename some variables that were shadowing global declarations. o Remove register storage-classes. o Make errmsg a const, so we can just set error messages instead of using sprintf/strcpy. o Set WARNS=2 Reviewed by: bde, des Notes: svn path=/head/; revision=81220
* Use PATH_MAX rather than MAXPATHLEN. Also fix a possible off by oneWarner Losh2001-05-291-8/+2
| | | | | | | | | | error caused by the -1 being on the wrong side of the comparison. This would not cause an overflow, as near as I can tell, because we truncate later anyway. We'd just fail to get a diagnostic for 1024 and 1025 byte file names. Notes: svn path=/head/; revision=77407
* $Id$ -> $FreeBSD$Peter Wemm1999-08-271-1/+1
| | | | Notes: svn path=/head/; revision=50471
* Silence some warnings when building on the alpha.Doug Rabson1998-08-071-2/+2
| | | | Notes: svn path=/head/; revision=38161
* Remove simultaneous include of <sys/param.h> and <sys/types.h>.Eivind Eklund1997-12-101-2/+1
| | | | | | | | Reorder includes to be alphabetical some places since I already was in here. Notes: svn path=/head/; revision=31666
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22988
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Nuked #ifdef __386BSD__ since this is not appropriate and no longer definedDavid Greenman1994-11-031-4/+2
| | | | | | | in our 2.6.1 gcc port. Notes: svn path=/head/; revision=4128
* Added $Id$David Greenman1994-09-241-0/+1
| | | | Notes: svn path=/head/; revision=3044
* use umask 077 for buffer fileAndrew Moore1994-03-231-9/+8
| | | | Notes: svn path=/head/; revision=1297
* Fixed range address bug: 1,2, == 2,2 not 2,.Andrew Moore1994-02-011-130/+160
| | | | | | | | Overhauled the name space, reworked some modules and removed the obsolescent Addison-Wesley copyright. Notes: svn path=/head/; revision=1057
* added (unsiged) cast to avoid int overflowAndrew Moore1993-08-091-1/+1
| | | | | | | removed REGEX directive Notes: svn path=/head/; revision=268
* Consolidate mark code - no functional changes or fixes.Andrew Moore1993-07-021-1/+4
| | | | Notes: svn path=/head/; revision=87
* fixed undo within a global command (would corrupt the buffer)Andrew Moore1993-06-261-2/+2
| | | | | | | | changed move within a global to behave as in SunOS added a couple error messages Notes: svn path=/head/; revision=49
* POSIX ed version 0.6 by Andrew Moore (alm@netcom.com).Andrew Moore1993-06-181-0/+263
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=16