make this build
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7215 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -56,33 +56,21 @@
|
||||
* [including the GNU Public Licence.]
|
||||
*/
|
||||
|
||||
/* $Id$ */
|
||||
|
||||
#ifndef HEADER_RC4_H
|
||||
#define HEADER_RC4_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
typedef unsigned int RC4_INT;
|
||||
|
||||
#ifdef NO_RC4
|
||||
#error RC4 is disabled.
|
||||
#endif
|
||||
|
||||
#include <openssl/opensslconf.h> /* RC4_INT */
|
||||
|
||||
typedef struct rc4_key_st
|
||||
{
|
||||
typedef struct rc4_key_st {
|
||||
RC4_INT x,y;
|
||||
RC4_INT data[256];
|
||||
} RC4_KEY;
|
||||
} RC4_KEY;
|
||||
|
||||
|
||||
const char *RC4_options(void);
|
||||
void RC4_set_key(RC4_KEY *key, int len, unsigned char *data);
|
||||
void RC4(RC4_KEY *key, unsigned long len, unsigned char *indata,
|
||||
unsigned char *outdata);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@@ -56,8 +56,10 @@
|
||||
* [including the GNU Public Licence.]
|
||||
*/
|
||||
|
||||
#include <openssl/rc4.h>
|
||||
#include "rc4_locl.h"
|
||||
#include "des_locl.h"
|
||||
#include "rc4.h"
|
||||
|
||||
RCSID("$Id$");
|
||||
|
||||
/* RC4 as implemented from a posting from
|
||||
* Newsgroups: sci.crypt
|
||||
|
@@ -56,26 +56,10 @@
|
||||
* [including the GNU Public Licence.]
|
||||
*/
|
||||
|
||||
#include <openssl/rc4.h>
|
||||
#include "rc4_locl.h"
|
||||
#include <openssl/opensslv.h>
|
||||
#include "des_locl.h"
|
||||
#include "rc4.h"
|
||||
|
||||
const char *RC4_version="RC4" OPENSSL_VERSION_PTEXT;
|
||||
|
||||
const char *RC4_options(void)
|
||||
{
|
||||
#ifdef RC4_INDEX
|
||||
if (sizeof(RC4_INT) == 1)
|
||||
return("rc4(idx,char)");
|
||||
else
|
||||
return("rc4(idx,int)");
|
||||
#else
|
||||
if (sizeof(RC4_INT) == 1)
|
||||
return("rc4(ptr,char)");
|
||||
else
|
||||
return("rc4(ptr,int)");
|
||||
#endif
|
||||
}
|
||||
RCSID("$Id$");
|
||||
|
||||
/* RC4 as implemented from a posting from
|
||||
* Newsgroups: sci.crypt
|
||||
|
Reference in New Issue
Block a user