srp_lcl.h revision 280304
1238106Sdes/* crypto/srp/srp_lcl.h */ 2238106Sdes/* 3238106Sdes * Written by Peter Sylvester (peter.sylvester@edelweb.fr) for the EdelKey 4238106Sdes * project and contributed to the OpenSSL project 2004. 5238106Sdes */ 6238106Sdes/* ==================================================================== 7238106Sdes * Copyright (c) 2004 The OpenSSL Project. All rights reserved. 8238106Sdes * 9238106Sdes * Redistribution and use in source and binary forms, with or without 10238106Sdes * modification, are permitted provided that the following conditions 11238106Sdes * are met: 12238106Sdes * 13238106Sdes * 1. Redistributions of source code must retain the above copyright 14238106Sdes * notice, this list of conditions and the following disclaimer. 15238106Sdes * 16238106Sdes * 2. Redistributions in binary form must reproduce the above copyright 17238106Sdes * notice, this list of conditions and the following disclaimer in 18238106Sdes * the documentation and/or other materials provided with the 19238106Sdes * distribution. 20238106Sdes * 21238106Sdes * 3. All advertising materials mentioning features or use of this 22238106Sdes * software must display the following acknowledgment: 23238106Sdes * "This product includes software developed by the OpenSSL Project 24266114Sdes * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)" 25266114Sdes * 26266114Sdes * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to 27266114Sdes * endorse or promote products derived from this software without 28266114Sdes * prior written permission. For written permission, please contact 29266114Sdes * licensing@OpenSSL.org. 30266114Sdes * 31266114Sdes * 5. Products derived from this software may not be called "OpenSSL" 32266114Sdes * nor may "OpenSSL" appear in their names without prior written 33266114Sdes * permission of the OpenSSL Project. 34238106Sdes * 35238106Sdes * 6. Redistributions of any form whatsoever must retain the following 36238106Sdes * acknowledgment: 37238106Sdes * "This product includes software developed by the OpenSSL Project 38238106Sdes * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)" 39238106Sdes * 40238106Sdes * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY 41238106Sdes * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 42238106Sdes * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 43238106Sdes * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR 44238106Sdes * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 45238106Sdes * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 46238106Sdes * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 47238106Sdes * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 48238106Sdes * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 49238106Sdes * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 50238106Sdes * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 51238106Sdes * OF THE POSSIBILITY OF SUCH DAMAGE. 52238106Sdes * ==================================================================== 53238106Sdes * 54238106Sdes * This product includes cryptographic software written by Eric Young 55238106Sdes * (eay@cryptsoft.com). This product includes software written by Tim 56238106Sdes * Hudson (tjh@cryptsoft.com). 57356345Scy * 58296415Sdes */ 59296415Sdes#ifndef HEADER_SRP_LCL_H 60238106Sdes# define HEADER_SRP_LCL_H 61238106Sdes 62238106Sdes# include <openssl/srp.h> 63238106Sdes# include <openssl/sha.h> 64238106Sdes 65238106Sdes# if 0 66238106Sdes# define srp_bn_print(a) {fprintf(stderr, #a "="); BN_print_fp(stderr,a); \ 67238106Sdes fprintf(stderr,"\n");} 68238106Sdes# else 69238106Sdes# define srp_bn_print(a) 70238106Sdes# endif 71238106Sdes 72238106Sdes 73238106Sdes 74238106Sdes#ifdef __cplusplus 75238106Sdesextern "C" { 76238106Sdes#endif 77238106Sdes 78238106Sdes 79238106Sdes 80238106Sdes#ifdef __cplusplus 81238106Sdes} 82238106Sdes#endif 83238106Sdes 84238106Sdes#endif 85238106Sdes