summaryrefslogtreecommitdiffstats
path: root/crypto
AgeCommit message (Expand)Author
2015-03-25free NULL cleanupRich Salz
2015-03-25make dependDr. Stephen Henson
2015-03-25make X509_NAME opaqueDr. Stephen Henson
2015-03-25Fix HMAC to pass invalid key len testMatt Caswell
2015-03-25Add HMAC test for invalid key lenMatt Caswell
2015-03-25Ensure that both the MD and key have been initialised before attempting toMatt Caswell
2015-03-25Add more HMAC testsMatt Caswell
2015-03-25Deprecate RAND_pseudo_bytesMatt Caswell
2015-03-25RAND_bytes updatesMatt Caswell
2015-03-24free NULL cleanupRich Salz
2015-03-24Fix verify algorithm.Dr. Stephen Henson
2015-03-24make ASN1_OBJECT opaqueDr. Stephen Henson
2015-03-24Make OCSP response verification more flexible.Dr. Stephen Henson
2015-03-24make dependDr. Stephen Henson
2015-03-24Move some EVP internals to evp_int.hDr. Stephen Henson
2015-03-24Move some ASN.1 internals to asn1_int.hDr. Stephen Henson
2015-03-24free NULL cleanupRich Salz
2015-03-24Fix malloc define typoMike Frysinger
2015-03-24Use OPENSSL_malloc rather than malloc/callocRichard Levitte
2015-03-24Fix eng_cryptodev to not depend on BN internals.Richard Levitte
2015-03-24Adjust include pathRichard Levitte
2015-03-24JPAKE Makefile missing 'files' targetRichard Levitte
2015-03-23Remove old style ASN.1 support.Dr. Stephen Henson
2015-03-23Fix build.Dr. Stephen Henson
2015-03-23make X509_EXTENSION opaqueDr. Stephen Henson
2015-03-23Remove deleted functions, update ordinals.Dr. Stephen Henson
2015-03-23Remove {i2d,d2i}_ASN1_BOOLEANDr. Stephen Henson
2015-03-23Remove old ASN.1 code.Dr. Stephen Henson
2015-03-23sha/asm/sha256-armv4.pl: adapt for use in Linux kernel context.Andy Polyakov
2015-03-20Add AES unwrap test with invalid key.Dr. Stephen Henson
2015-03-20Fix memory leak.Dr. Stephen Henson
2015-03-20CRYPTO_128_unwrap(): Fix refactoring damageRichard Godbee
2015-03-20wrap128.c: Fix Doxygen commentsRichard Godbee
2015-03-19Fix a failure to NULL a pointer freed on error.Matt Caswell
2015-03-19PKCS#7: avoid NULL pointer dereferences with missing contentEmilia Kasper
2015-03-19Fix ASN1_TYPE_cmpDr. Stephen Henson
2015-03-19Reject invalid PSS parameters.Dr. Stephen Henson
2015-03-19Free up ADB and CHOICE if already initialised.Dr. Stephen Henson
2015-03-17Remove dead code from cryptoMatt Caswell
2015-03-17Fix probable_prime over large shiftMatt Caswell
2015-03-17Fix unintended sign extensionMatt Caswell
2015-03-17Fix memset call in stack.cMatt Caswell
2015-03-16Make X509_ATTRIBUTE opaque.Dr. Stephen Henson
2015-03-15Fix regression in ASN1_UTCTIME_cmp_time_tCarl Jackson
2015-03-15Update ordinals, fix error message.Dr. Stephen Henson
2015-03-14Avoid reading an unused byte after the bufferAndy Polyakov
2015-03-13Fix undefined behaviour in shifts.Emilia Kasper
2015-03-13Allocate string types directly.Dr. Stephen Henson
2015-03-13Fix key wrapping mode with padding to conform to RFC 5649.Petr Spacek
2015-03-12Remove obsolete declarations.Dr. Stephen Henson
CHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * The licence and distribution terms for any publically available version or * derivative of this code cannot be changed. i.e. this code cannot simply be * copied and put under another distribution licence * [including the GNU Public Licence.] */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include "apps.h" #include <openssl/bio.h> #include <openssl/lhash.h> #include <openssl/err.h> #include <openssl/ssl.h> #undef PROG #define PROG errstr_main int MAIN(int, char **); int MAIN(int argc, char **argv) { int i, ret = 0; char buf[256]; unsigned long l; apps_startup(); if (bio_err == NULL) if ((bio_err = BIO_new(BIO_s_file())) != NULL) BIO_set_fp(bio_err, stderr, BIO_NOCLOSE | BIO_FP_TEXT); SSL_load_error_strings(); if ((argc > 1) && (strcmp(argv[1], "-stats") == 0)) { BIO *out = NULL; out = BIO_new(BIO_s_file()); if ((out != NULL) && BIO_set_fp(out, stdout, BIO_NOCLOSE)) { #ifdef OPENSSL_SYS_VMS { BIO *tmpbio = BIO_new(BIO_f_linebuffer()); out = BIO_push(tmpbio, out); } #endif lh_ERR_STRING_DATA_node_stats_bio(ERR_get_string_table(), out); lh_ERR_STRING_DATA_stats_bio(ERR_get_string_table(), out); lh_ERR_STRING_DATA_node_usage_stats_bio(ERR_get_string_table(), out); } if (out != NULL) BIO_free_all(out); argc--; argv++; } for (i = 1; i < argc; i++) { if (sscanf(argv[i], "%lx", &l)) { ERR_error_string_n(l, buf, sizeof buf); printf("%s\n", buf); } else { printf("%s: bad error code\n", argv[i]); printf("usage: errstr [-stats] <errno> ...\n"); ret++; } } apps_shutdown(); OPENSSL_EXIT(ret); }