Deleted Added
full compact
mpasbn.c (84212) mpasbn.c (110011)
1/*
2 * Copyright (c) 2001 Dima Dorfman.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 56 unchanged lines hidden (view full) ---

65 * and not in mp.h) have an underscore prepended to their name (this
66 * is more for aesthetical reasons than technical). All such
67 * routines take an extra argument, 'msg', that denotes what they
68 * should call themselves in an error message. This is so a user
69 * doesn't get an error message from a function they didn't call.
70 */
71
72#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2001 Dima Dorfman.
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 56 unchanged lines hidden (view full) ---

65 * and not in mp.h) have an underscore prepended to their name (this
66 * is more for aesthetical reasons than technical). All such
67 * routines take an extra argument, 'msg', that denotes what they
68 * should call themselves in an error message. This is so a user
69 * doesn't get an error message from a function they didn't call.
70 */
71
72#include <sys/cdefs.h>
73__FBSDID("$FreeBSD: head/lib/libmp/mpasbn.c 84212 2001-09-30 21:58:17Z dillon $");
73__FBSDID("$FreeBSD: head/lib/libmp/mpasbn.c 110011 2003-01-28 23:03:15Z markm $");
74
75#include <ctype.h>
76#include <err.h>
77#include <errno.h>
78#include <stdio.h>
79#include <stdlib.h>
80#include <string.h>
81
74
75#include <ctype.h>
76#include <err.h>
77#include <errno.h>
78#include <stdio.h>
79#include <stdlib.h>
80#include <string.h>
81
82#include <openssl/bn.h>
83#include <openssl/crypto.h>
84#include <openssl/err.h>
85
82#include <openssl/crypto.h>
83#include <openssl/err.h>
84
85#include "openssl/crypto/bn/bn_lcl.h"
86#include "mp.h"
87
88#define MPERR(s) do { warn s; abort(); } while (0)
89#define MPERRX(s) do { warnx s; abort(); } while (0)
90#define BN_ERRCHECK(msg, expr) do { \
91 if (!(expr)) _bnerr(msg); \
92} while (0)
93

--- 497 unchanged lines hidden ---
86#include "mp.h"
87
88#define MPERR(s) do { warn s; abort(); } while (0)
89#define MPERRX(s) do { warnx s; abort(); } while (0)
90#define BN_ERRCHECK(msg, expr) do { \
91 if (!(expr)) _bnerr(msg); \
92} while (0)
93

--- 497 unchanged lines hidden ---