aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/factor/factor.c
Commit message (Collapse)AuthorAgeFilesLines
* sccs: Manual changesWarner Losh2023-11-271-14/+0
| | | | | | | | | | | | | | | For the uncommon items: Go through the tree and remove sccs tags that didn't fit any nice pattern. If in the neighborhood, other SCM tags were removed when they were detritis of long-ago CVS somehow in the early mists of the project. Some adjacent copyrights stringswere removed (they duplicated the copyright notices in the file). This also removed non-standard formations of omission of SCCS tags (usually by adding an extra #if 0 somewhere. After this commit, a number of strings tagged with the 'what' @(#) prefix remain, but they are primarily copyright notices. Sponsored by: Netflix
* factor: Remove an empty #ifdef __FBSDID clauseJohn Baldwin2023-09-231-2/+0
|
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-1/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* Fix the build post-dcf5d5603b3af8Enji Cooper2023-05-281-2/+2
| | | | | | | I didn't compile test the prior code before committing. MFC after: 1 week MFC with: dcf5d5603b3af831002caa7b2f64aec8bda14071
* Reduce ifdef soup by adding pre-3.0 compat supportEnji Cooper2023-05-281-16/+10
| | | | | | | | | | | | | | This change creates a static inline function, BN_check_prime, for pre-3.0 use which is implemented with the previous (1.1) compatible call under the covers, `BN_is_prime_ex`. The `nchecks` parameter value is maintained, even though it has no noticable behavior change, given that the documentation clearly states that at least 64 or 128 rounds are executed on the backend, depending on how many bits there are in the given number being factored out. MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D40305
* factor: support OpenSSL 3Enji Cooper2023-05-271-2/+15
| | | | | | | | | | This change ports the BN APIs to an OpenSSL 3 compatible set of APIs. This removes the need for requesting OpenSSL 1.1 compatible APIs. MFC after: 1 week Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D40298
* Fix the way 'factor' behaves when using OpenSSL to match the descriptionGarance A Drosehn2020-01-121-16/+53
| | | | | | | | | | | | | | | | of how it works when not compiled with OpenSSL. Also, allow users to specify a hexadecimal number by using a prefix of '0x'. Before this, users could only specify a hexadecimal value if that value included a hex digit ('a'-'f') in the value. PR: 243136 Submitted by: Steve Kargl Reviewed by: gad MFC after: 3 weeks Notes: svn path=/head/; revision=356666
* Make factor(6) buildable.Jung-uk Kim2018-09-191-5/+3
| | | | Notes: svn path=/projects/openssl111/; revision=338785
* Final step of eliminating the "games" distribution: Merge src/gamesColin Percival2015-10-021-0/+374
(or what's left of it, at least) into src/usr.bin. This change will not be MFCed. Discussed at: EuroBSDCon 2014 Committed from: EuroBSDCon 2015 Notes: svn path=/head/; revision=288485