Removed cruft.

git-svn-id: svn://10.0.0.236/trunk@56763 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
warren%netscape.com
2000-01-04 22:40:19 +00:00
parent 62221242b1
commit daac8f90b6
424 changed files with 0 additions and 143410 deletions

View File

@@ -1,19 +0,0 @@
#
# This is a list of local files which get copied to the mozilla:dist directory
#
base64.h
cert.h
preenc.h
seccomon.h
secerr.h
sechash.h
secnav.h
secrng.h
secstubn.h
secstubs.h
secstubt.h
ssl.h
sslerr.h
zig.h
rosetta.h

View File

@@ -1,60 +0,0 @@
#
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
#
DEPTH = ../../..
topsrcdir = @top_srcdir@
srcdir = @srcdir@
VPATH = @srcdir@
include $(DEPTH)/config/autoconf.mk
MODULE = security
LIBRARY_NAME = secfree
REQUIRES = js img layer util
CSRCS = \
secport.c \
navstubs.c \
$(NULL)
EXPORTS = \
base64.h \
cert.h \
preenc.h \
seccomon.h \
secerr.h \
sechash.h \
secnav.h \
secrng.h \
secstubn.h \
secstubs.h \
secstubt.h \
ssl.h \
sslerr.h \
zig.h \
rosetta.h \
$(NULL)
EXPORTS := $(addprefix $(srcdir)/, $(EXPORTS))
include $(topsrcdir)/config/rules.mk

View File

@@ -1,22 +0,0 @@
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "seccomon.h"

View File

@@ -1,21 +0,0 @@
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "seccomon.h"

View File

@@ -1,30 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
//
// Security.Prefix
//
// Global prefix file for the non-debug Security project.
//
//
#include "SecurityConfig.h"

View File

@@ -1,60 +0,0 @@
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
// we have to do this here because ConditionalMacros.h will be included from
// within OpenTptInternet.h and will stupidly define these to 1 if they
// have not been previously defined. The new PowerPlant (CWPro1) requires that
// this be set to 0. (pinkerton)
#error "Don't use me"
#define OLDROUTINENAMES 0
#ifndef OLDROUTINELOCATIONS
#define OLDROUTINELOCATIONS 0
#endif
#define XP_MAC 1
#define _PR_NO_PREEMPT 1
#define _NO_FAST_STRING_INLINES_ 1
// Need to define NETSCAPE so that Nelson's Java SSL API bits compile.
#ifndef NETSCAPE
#define NETSCAPE 1
#endif
// Need to define MOZILLA_CLIENT since, well, we're the client-side library.
#ifndef MOZILLA_CLIENT
#define MOZILLA_CLIENT 1
#endif
// OpenTransport.h has changed to not include the error messages we need from
// it unless this is defined. Why? dunnno...(pinkerton)
#define OTUNIXERRORS 1
// Brutal hack: Make sure only one copy of macsock.h is included.
//#define macksocket_h___
#include "IDE_Options.h"
/* Make sure that "macintosh" is defined. */
#ifndef macintosh
#define macintosh 1
#endif

View File

@@ -1,99 +0,0 @@
# The contents of this file are subject to the Netscape Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/NPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Netscape
# Communications Corporation. Portions created by Netscape are
# Copyright (C) 1998 Netscape Communications Corporation. All
# Rights Reserved.
#
# Contributor(s):
!if "$(MOZ_BITS)" == "16"
!ifndef MOZ_DEBUG
OPTIMIZER=-Os -UDEBUG -DNDEBUG
!endif
!endif
#//------------------------------------------------------------------------
#//
#// Specify the depth of the current directory relative to the
#// root of NS
#//
#//------------------------------------------------------------------------
DEPTH= ..\..\..
!ifndef MAKE_OBJ_TYPE
MAKE_OBJ_TYPE=EXE
!endif
#//------------------------------------------------------------------------
#//
#// Define any Public Make Variables here: (ie. PDFFILE, MAPFILE, ...)
#//
#//------------------------------------------------------------------------
LIBNAME=secfreenav$(MOZ_BITS)
PDBFILE=$(LIBNAME).pdb
LINCS = \
!if "$(MOZ_BITS)" != "16"
-I$(PUBLIC)\security \
-I$(PUBLIC)\liblayer \
-I$(PUBLIC)\dbm \
-I$(PUBLIC)\js \
-I$(PUBLIC)\util \
-I$(PUBLIC)\img \
!endif
-I$(DEPTH)\include
#//------------------------------------------------------------------------
#//
#// Define the files necessary to build the target (ie. OBJS)
#//
#//------------------------------------------------------------------------
OBJS= \
.\$(OBJDIR)\secport.obj \
.\$(OBJDIR)\navstubs.obj \
$(NULL)
#//------------------------------------------------------------------------
#//
#// Define any Public Targets here (ie. PROGRAM, LIBRARY, DLL, ...)
#// (these must be defined before the common makefiles are included)
#//
#//------------------------------------------------------------------------
LIBRARY = .\$(OBJDIR)\$(LIBNAME).lib
#//------------------------------------------------------------------------
#//
#// install headers
#//
#//------------------------------------------------------------------------
INSTALL_DIR=$(XPDIST)\include
INSTALL_FILE_LIST=base64.h cert.h preenc.h seccomon.h secerr.h sechash.h secnav.h secrng.h secstubn.h secstubs.h secstubt.h ssl.h sslerr.h zig.h secprefs.rc rosetta.h
#//------------------------------------------------------------------------
#//
#// Include the common makefile rules
#//
#//------------------------------------------------------------------------
include <$(DEPTH)/config/rules.mak>
CFLAGS = $(CFLAGS) -DMOZILLA_CLIENT
install:: $(LIBRARY)
$(MAKE_INSTALL) $(LIBRARY) $(DIST)\lib
export:: INSTALL_FILES
install:: install

View File

@@ -1,734 +0,0 @@
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "secnav.h"
#include "libmocha.h"
#include "prlink.h"
#include "prinrval.h"
void SSL_DataPending() {}
int
SSL_SetSockPeerID(PRFileDesc *fd, char *peerID)
{
return(0);
}
void
SECNAV_Posting(PRFileDesc *fd)
{
return;
}
void
SECNAV_HTTPHead(PRFileDesc *fd)
{
return;
}
void
SECNAV_RegisterNetlibMimeConverters()
{
return;
}
char *
SECNAV_MungeString(const char *unmunged_string)
{
return(NULL);
}
char *
SECNAV_UnMungeString(const char *munged_string)
{
return(NULL);
}
PRBool
SECNAV_GenKeyFromChoice(void *proto_win, LO_Element *form,
char *choiceString, char *challenge,
char *typeString, char *pqgString,
char **pValue, PRBool *pDone)
{
return(PR_FALSE);
}
char **
SECNAV_GetKeyChoiceList(char *type, char *pqgString)
{
return(NULL);
}
PRBool
SECNAV_SecurityDialog(MWContext *context, int state)
{
return (state == SD_INSECURE_POST_FROM_INSECURE_DOC);
}
JSObject *
lm_DefinePkcs11(MochaDecoder *decoder)
{
return((JSObject *)1);
}
JSObject *
lm_DefineCrypto(MochaDecoder *decoder)
{
return((JSObject *)1);
}
void
NET_InitCertLdapProtocol(void)
{
}
CERTCertificate *
CERT_DupCertificate(CERTCertificate *cert)
{
return(NULL);
}
void
CERT_DestroyCertificate(CERTCertificate *cert)
{
return;
}
CERTCertificate *
CERT_NewTempCertificate (CERTCertDBHandle *handle, SECItem *derCert,
char *nickname, PRBool isperm, PRBool copyDER)
{
return(NULL);
}
CERTCertDBHandle *
CERT_GetDefaultCertDB(void)
{
return(NULL);
}
CERTCertificate *
CERT_DecodeCertFromPackage(char *certbuf, int certlen)
{
return(NULL);
}
char *
CERT_HTMLCertInfo(CERTCertificate *cert, PRBool showImages, PRBool showIssuer)
{
return(NULL);
}
PRBool
CERT_CompareCertsForRedirection(CERTCertificate *c1, CERTCertificate *c2)
{
return(PR_FALSE);
}
const char *
SECNAV_GetPolicyNameString(void)
{
return(NULL);
}
int
SECNAV_InitConfigObject(void)
{
return(0);
}
int
SECNAV_RunInitialSecConfig(void)
{
return(0);
}
void
SECNAV_EarlyInit(void)
{
return;
}
void
SECNAV_Init(void)
{
return;
}
void
SECNAV_Shutdown(void)
{
return;
}
void
SECNAV_SecurityAdvisor(void *proto_win, URL_Struct *url)
{
return;
}
char *
SECNAV_MakeCertButtonString(CERTCertificate *cert)
{
return(NULL);
}
int
SECNAV_SecURLData(char *which, NET_StreamClass *stream, MWContext *cx)
{
return(-1);
}
char *
SECNAV_SecURLContentType(char *which)
{
return(NULL);
}
int
SECNAV_SecHandleSecurityAdvisorURL(MWContext *cx, const char *which)
{
return(-1);
}
void
SECNAV_HandleInternalSecURL(URL_Struct *url, MWContext *cx)
{
return;
}
PRBool
SSL_IsDomestic(void)
{
return(PR_FALSE);
}
SECStatus
SECNAV_ComputeFortezzaProxyChallengeResponse(MWContext *context,
char *asciiChallenge,
char **signature_out,
char **clientRan_out,
char **certChain_out)
{
return(SECFailure);
}
char *
SECNAV_PrettySecurityStatus(int level, unsigned char *status)
{
return(NULL);
}
char *
SECNAV_SecurityVersion(PRBool longForm)
{
return("N");
}
char *
SECNAV_SSLCapabilities(void)
{
return(NULL);
}
unsigned char *
SECNAV_SSLSocketStatus(PRFileDesc *fd, int *return_security_level)
{
return(NULL);
}
unsigned char *
SECNAV_CopySSLSocketStatus(unsigned char *status)
{
return(NULL);
}
unsigned int
SECNAV_SSLSocketStatusLength(unsigned char *status)
{
return(0);
}
char *
SECNAV_SSLSocketCertString(unsigned char *status)
{
return(NULL);
}
PRBool
SECNAV_CompareCertsForRedirection(unsigned char *status1,
unsigned char *status2)
{
return(PR_FALSE);
}
CERTCertificate *
SECNAV_CertFromSSLSocketStatus(unsigned char *status)
{
return(NULL);
}
SECStatus
RNG_RNGInit(void)
{
return(SECSuccess);
}
/*
* probably need to provide something here
*/
SECStatus
RNG_GenerateGlobalRandomBytes(void *dest, size_t len)
{
/* This is a temporary implementation to avoid */
/* the cache filename horkage. This needs to have a more */
/* secure/free implementation here - Gagan */
char* output=dest;
size_t i;
srand((unsigned int) PR_IntervalToMilliseconds(PR_IntervalNow()));
for (i=0;i<len; i++)
{
int t = rand();
*output = (char) (t % 256);
output++;
}
return(SECSuccess);
}
/*
** Get the "noisiest" information available on the system.
*/
size_t
RNG_GetNoise(void *buf, size_t maxbytes)
{
return(0);
}
/*
** RNG_SystemInfoForRNG should be called before any use of SSL. It
** gathers up the system specific information to help seed the
** state of the global random number generator.
*/
void
RNG_SystemInfoForRNG(void)
{
return;
}
/*
** Use the contents (and stat) of a file to help seed the
** global random number generator.
*/
void RNG_FileForRNG(char *filename)
{
return;
}
/*
** Update the global random number generator with more seeding
** material
*/
SECStatus
RNG_RandomUpdate(void *data, size_t bytes)
{
return(SECFailure);
}
PRStaticLinkTable jsl_nodl_tab[1];
void
_java_jsl_init(void)
{
}
DIGESTS *PR_CALLBACK
SOB_calculate_digest(void XP_HUGE *data, long length)
{
return(NULL);
}
int PR_CALLBACK
SOB_verify_digest(ZIG *siglist, const char *name, DIGESTS *dig)
{
return(-1);
}
void PR_CALLBACK
SOB_destroy (ZIG *zig)
{
return;
}
char *
SOB_get_error (int status)
{
return(NULL);
}
ZIG_Context *
SOB_find(ZIG *zig, char *pattern, int type)
{
return(NULL);
}
int
SOB_find_next(ZIG_Context *ctx, SOBITEM **it)
{
return(-1);
}
void
SOB_find_end(ZIG_Context *ctx)
{
return;
}
char *
SOB_get_url (ZIG *zig)
{
return(NULL);
}
ZIG *
SOB_new (void)
{
return(NULL);
}
int
SOB_set_callback (int type, ZIG *zig,
int (*fn) (int status, ZIG *zig,
const char *metafile,
char *pathname, char *errortext))
{
return(-1);
}
int PR_CALLBACK
SOB_cert_attribute(int attrib, ZIG *zig, long keylen, void *key,
void **result, unsigned long *length)
{
return(-1);
}
int PR_CALLBACK
SOB_stash_cert(ZIG *zig, long keylen, void *key)
{
return(-1);
}
int SOB_parse_manifest(char XP_HUGE *raw_manifest, long length,
const char *path, const char *url, ZIG *zig)
{
return(-1);
}
void
SECNAV_signedAppletPrivileges(void *proto_win, char *javaPrin,
char *javaTarget, char *risk, int isCert)
{
return;
}
void
SECNAV_signedAppletPrivilegesOnMozillaThread(void *proto_win, char *javaPrin,
char *javaTarget, char *risk, int isCert)
{
return;
}
char *
SOB_JAR_list_certs (void)
{
return(NULL);
}
int
SOB_JAR_validate_archive (char *filename)
{
return(-1);
}
void *
SOB_JAR_new_hash (int alg)
{
return(NULL);
}
void *
SOB_JAR_hash (int alg, void *cookie, int length, void *data)
{
return(NULL);
}
void *
SOB_JAR_end_hash (int alg, void *cookie)
{
return(NULL);
}
int
SOB_JAR_sign_archive (char *nickname, char *password, char *sf, char *outsig)
{
return(-1);
}
int
SOB_set_context (ZIG *zig, MWContext *mw)
{
return(-1);
}
int
SOB_pass_archive(int format, char *filename, const char *url, ZIG *zig)
{
return(-1);
}
int
SOB_get_metainfo(ZIG *zig, char *name, char *header, void **info,
unsigned long *length)
{
return(-1);
}
int
SOB_verified_extract(ZIG *zig, char *path, char *outpath)
{
return(-1);
}
/*
** Hash a non-null terminated string "src" into "dest" using MD5
*/
SECStatus
MD5_HashBuf(unsigned char *dest, const unsigned char *src,
uint32 src_length)
{
return(SECFailure);
}
/*
** Create a new MD5 context
*/
MD5Context *
MD5_NewContext(void)
{
return(NULL);
}
/*
** Destroy an MD5 secure hash context.
** "cx" the context
** "freeit" if PR_TRUE then free the object as well as its sub-objects
*/
void
MD5_DestroyContext(MD5Context *cx, PRBool freeit)
{
return;
}
/*
** Reset an MD5 context, preparing it for a fresh round of hashing
*/
void
MD5_Begin(MD5Context *cx)
{
return;
}
/*
** Update the MD5 hash function with more data.
** "cx" the context
** "input" the data to hash
** "inputLen" the amount of data to hash
*/
void
MD5_Update(MD5Context *cx, const unsigned char *input, unsigned int inputLen)
{
return;
}
/*
** Finish the MD5 hash function. Produce the digested results in "digest"
** "cx" the context
** "digest" where the 16 bytes of digest data are stored
** "digestLen" where the digest length (16) is stored
** "maxDigestLen" the maximum amount of data that can ever be
** stored in "digest"
*/
void
MD5_End(MD5Context *cx, unsigned char *digest,
unsigned int *digestLen, unsigned int maxDigestLen)
{
return;
}
/*
** Hash a non-null terminated string "src" into "dest" using SHA-1
*/
SECStatus
SHA1_HashBuf(unsigned char *dest, const unsigned char *src, uint32 src_length)
{
return(SECFailure);
}
/*
** Create a new SHA-1 context
*/
SHA1Context *
SHA1_NewContext(void)
{
return(NULL);
}
/*
** Destroy a SHA-1 secure hash context.
** "cx" the context
** "freeit" if PR_TRUE then free the object as well as its sub-objects
*/
void
SHA1_DestroyContext(SHA1Context *cx, PRBool freeit)
{
return;
}
/*
** Reset a SHA-1 context, preparing it for a fresh round of hashing
*/
void
SHA1_Begin(SHA1Context *cx)
{
return;
}
/*
** Update the SHA-1 hash function with more data.
** "cx" the context
** "input" the data to hash
** "inputLen" the amount of data to hash
*/
void
SHA1_Update(SHA1Context *cx, const unsigned char *input, unsigned int inputLen)
{
return;
}
/*
** Finish the SHA-1 hash function. Produce the digested results in "digest"
** "cx" the context
** "digest" where the 16 bytes of digest data are stored
** "digestLen" where the digest length (20) is stored
** "maxDigestLen" the maximum amount of data that can ever be
** stored in "digest"
*/
void
SHA1_End(SHA1Context *cx, unsigned char *digest,
unsigned int *digestLen, unsigned int maxDigestLen)
{
return;
}
/*
** Return a malloc'd ascii string which is the base64 encoded
** version of the input string.
*/
char *
BTOA_DataToAscii(const unsigned char *data, unsigned int len)
{
return(NULL);
}
/*
** Return a malloc'd string which is the base64 decoded version
** of the input string; set *lenp to the length of the returned data.
*/
unsigned char *
ATOB_AsciiToData(const char *string, unsigned int *lenp)
{
return(NULL);
}
unsigned int
HASH_ResultLen(HASH_HashType type)
{
return 0;
}
unsigned int
HASH_ResultLenContext(HASHContext *context)
{
return 0;
}
SECStatus
HASH_HashBuf(HASH_HashType type, unsigned char *dest, unsigned char *src,
uint32 src_len)
{
return SECFailure;
}
HASHContext *
HASH_Create(HASH_HashType type)
{
return NULL;
}
HASHContext *
HASH_Clone(HASHContext *context)
{
return NULL;
}
void
HASH_Destroy(HASHContext *context)
{
return;
}
void
HASH_Begin(HASHContext *context)
{
return;
}
void
HASH_Update(HASHContext *context, const unsigned char *src, unsigned int len)
{
return;
}
void
HASH_End(HASHContext *context, unsigned char *result, unsigned int *result_len,
unsigned int max_result_len)
{
*result_len = 0;
return;
}

View File

@@ -1,22 +0,0 @@
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "seccomon.h"
#include "secstubn.h"

View File

@@ -1,900 +0,0 @@
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef _ROSETTA_H_
#define _ROSETTA_H_
#define HG87729
#define HG92192 FALSE
#define HG21872
#define HG12021 FALSE
#define HG92725
#define HG83738
#define HG29292
#define HG28926
#define HG29822
#define HG29832
#define HG83734
#define HG73252
#define HG93733
#define HG29828
#define HG38276
#define HG36527 xpNewsRC
#define HG98333 FALSE
#define HG73267 FALSE
#define HG87366 if (!port) port = NEWS_PORT;
#define HG83765
#define HG37630
#define HG83178
#define HG78636
#define HG72688 FALSE
#define HG83737
#define HG71654
#define HG93663
#define HG73622
#define HG87355
#define HG25525
#define HG26477
#define HG78365
#define HG89732
#define HG87535
#define HG87963
#define HG91476
#define HG78271
#define HG25167 return 0;
#define HG98726
#define HG82798
#define HG87266
#define HG19826
#define HG82266
#define HG18262
#define HG12765
#define HG16236
#define HG16215
#define HG28366
#define HG18763
#define HG28736
#define HG28361
#define HG23837
#define HG65276 TRUE
#define HG38467 "Sorry, no can do."
#define HG84636
#define HG48362
#define HG72626
#define HG38376
#define HG38262
#define HG37252
#define HG93634
#define HG56817
#define HG43241
#define HG12515
#define HG07606
#define HG94794
#define HG51096
#define HG59609
#define HG40252
#define HG28879
#define HG71089
#define HG31456
#define HG69136
#define HG86722
#define HG87489
#define HG22864
#define HG40560
#define HG33086
#define HG17928
#define HG68092
#define HG08747
#define HG60917
#define HG82493
#define HG85890
#define HG09714
#define HG90967
#define HG59852
#define HG61365
#define HG54978
#define HG18931
#define HG29784
#define HG82168
#define HG29989
#define HG48722
#define HG47352
#define HG05988
#define HG05989
#define HG83344
#define HG73299
#define HG00374
#define HG83666
#define HG77677 "msgpane.h"
#define HG77678
#define HG72266
#define HG72267 XP_STRDUP
#define HG29872
#define HG52442
#define HG42322
#define HG72530
#define HG52421
#define HG52987
#define HG72224 XP_STRDUP
#define HG62294 XP_STRDUP
#define HG52286
#define HG64384
#define HG99874 "msgsend.h"
#define HG83647
#define HG62453
#define HG42326
#define HG52432
#define HG62239
#define HG42420
#define HG42933
#define HG52965
#define HG66663 ,XP_Bool x1, XP_Bool x2
#define HG66664
#define HG65243
#define HG00282 XP_Bool x1, XP_Bool x2,
#define HG02872
#define HG65241 ,FALSE, FALSE
#define HG73530
#define HG72523
#define HG09275
#define HG24327
#define HG24326
#define HG23258 XP_STRDUP
#define HG28265 XP_STRDUP
#define HG24239
#define HG56307
#define HG32686 XP_STRDUP
#define HG53961
#define HG97760
#define HG29866
#define HG72142
#define HG82309
#define HG63256
#define HG87635
#define HG32428
#define HG82454
#define HG43788
#define HG98298
#define HG92734
#define HG87637
#define HG92435
#define HG62437
#define HG62422
#define HG89377
#define HG83623
#define HG68452
#define HG93873
#define HG54897
#define HG96484
#define HG15448 ,FALSE, FALSE
#define HG83336
#define HG63531 0
#define HG73653(a) 0
#define HG52242
#define HG42320
#define HG98379
#define HG65293(a) 0
#define HG42539
#define HG72761 cur_ptr += 2*sizeof(int32);
#define HG42490
#define HG73699
#define HG72873
#define HG83778
#define HG32839
#define HG73209
#define HG65288 "client.h"
#define HG73891
#define HG76298
#define HG87325
#define HG73896
#define HG73684
#define HG83903
#define HG32138
#define HG65294
#define HG83267
#define HG63287
#define HG06196
#define HG63453
#define HG98471
#define HG52897
#define HG73870
#define HG74380
#define HG52980
#define HG87326 "mkhelp.h"
#define HG45245 "mkhelp.h"
#define HG63250 "mkhelp.h"
#define HG42784
#define HG73787
#define HG72987
#define HG52422
#define HG62630
#define HG24324
#define HG63454
#define HG42422
#define HG64398
#define HG77355
#define HG42421
#define HG87237
#define HG52423
#define HG76373 TRUE
#define HG72388 TRUE;
#define HG52223 TRUE;
#define HG53535
#define HG52528 FALSE;
#define HG73277 FALSE
#define HG73738
#define HG62522
#define HG62363
#define HG24242 this_entry->protocol = HTTP_TYPE_URL;
#define HG42469
#define HG87376
#define HG76363
#define HG83667
#define HG00484
#define HG88000
#define HG50027
#define HG72762
#define HG16262
#define HG72661
#define HG13227
#define HG65256
#define HG33234
#define HG22658
#define HG28266
#define HG00729
#define HG60283
#define HG60207
#define HG42440
#define HG20026
#define HG02977
#define HG02726
#define HG98276
#define HG72999
#define HG73943
#define HG92762
#define HG92755
#define HG98229
#define HG98265
#define HG93653
#define HG82762
#define HG82621
#define HG22960
#define HG92827
#define HG02087
#define HG82126
#define HG62212 FALSE, FALSE
#define HG91611 FALSE, FALSE
#define HG81762 FALSE, FALSE
#define HG76255 FALSE, FALSE
#define HG22987
#define HG22296 FALSE, FALSE
#define HG22867
#define HG32145
#define HG09990 FALSE, FALSE
#define HG89520
#define HG02192 FALSE, FALSE
#define HG82821
#define HG82224
#define HG22821
#define HG03067 "msg.h"
#define HG23277
#define HG92923
#define HG82220
#define HG22067
#define HG98330
#define HG98373
#define HG22860
#define HG02700 "NIKI"
#define HG99877 "prefapi.h"
#define HG02902 "msgsend.h"
#define HG98214 "rosetta.h"
#define HG72621
#define HG10828
#define HG82727
#define HG26763
#define HG26250
#define HG26251
#define HG26252 SECFailure;
#define HG26253 FALSE
#define HG26237
#define HG26748
#define HG98476
#define HG83764
#define HG83744
#define HG83476
#define HG84777
#define HG27398
#define HG83263
#define HG22730
#define HG74640
#define HG87365
#define HG73632
#define HG29383
#define HG25262
#define HG17993
#define HG72294
#define HG21522
#define HG03937
#define HG21632
#define HG22220
#define HG38932
#define HG83330
#define HG20476
#define HG87358
#define HG93765
#define HG92743 Bool dummy,
#define HG83665
#define HG98376 FALSE,
#define HG92362
#define HG26300
#define HG27229 "rosetta.h"
#define HG27230 FALSE,
#define HG27326 "mkutils.h"
#define HG32828
#define HG26363 "msgnet.h"
#define HG26227
#define HG27327 FALSE
#define HG38373 FALSE
#define HG72524
#define HG73654 FALSE
#define HG87263 FALSE
#define HG83733 FALSE
#define HG32830 FALSE
#define HG29237
#define HG87373 "net.h"
#define HG73226
#define HG38731
#define HG87272 MK_LDAP_TITLE
#define HG73272 MK_LDAP_TITLE
#define HG73211
#define HG83363
#define HG26557
#define HG27328
#define HG23833
#define HG28330
#define HG10299 "gui.h"
#define HG10300 FALSE,
#define HG82332
#define HG32949
#define HG38737
#define HG29239
#define HG28287
#define HG22999 FALSE,
#define HG93230
#define HG29399
#define HG20900
#define HG23929 "mktcp.h"
#define HG82300
#define HG21899
#define HG19088
#define HG10877
#define HG23298
#define HG29898
#define HG22201
#define HG38738 FALSE,
#define HG02873 FALSE,
#define HG92892
#define HG92871
#define HG82772
#define HG03903
#define HG82773 FALSE
#define HG22087 FALSE
#define HG22088
#define HG22089 FALSE
#define HG21092
#define HG09309
#define HG29802 0
#define HG93882
#define HG93898
#define HG93288
#define HG21090
#define HG20092
#define HG29398
#define HG83273
#define HG09438 "mkpop3.h"
#define HG09439 FALSE,
#define HG23535 "mktcp.h"
#define HG27655
#define HG83763
#define HG35353
#define HG38763 "mime.h"
#define HG83777
#define HG35632
#define HG83773
#define HG83787
#define HG73678
#define HG84378
#define HG84772
#define HG99875 XP_STRDUP
#define HG99876 XP_STRDUP
#define HG99879 XP_STRDUP
#define HG99880
#define HG99881
#define HG99882
#define HG53784
#define HG78478
#define HG89984
#define HG54689
#define HG55451
#define HG36459
#define HG75442
#define HG59731
#define HG56898
#define HG78111 FALSE
/* WINDOWS FRONT END */
#define HG37279
#define HG83788
#define HG82387
#define HG89327
#define HG27635
#define HG83722
#define HG06197
#define HG32564
#define HG73537
#define HG21675
#define HG72866 FALSE;
#define HG27861
#define HG73221 FALSE
#define HG73723
#define HG28751 FALSE;
#define HG28972
#define HG29172
#define HG98271
#define HG27851
#define HG98261
#define HG28768
#define HG28728
#define HG26723
#define HG29792
#define HG38729
#define HG81325
#define HG87322
#define HG28218
#define HG76528
#define HG27625
#define HG72521
#define HG87282
#define HG28762
#define HG92611
#define HG11173
#define HG21215
#define HG21326
#define HG22121
#define HG28363
#define HG26545
#define HG12421
#define HG17231
#define HG26576 int idx = -1;
#define HG26522
#define HG87236 return;
#define HG17236 return;
#define HG87211
#define HG26722
#define HG27811
#define HG27129
#define HG21198 FALSE, FALSE
#define HG26726
#define HG21892 FALSE, FALSE
#define HG28118
#define HG26262
#define HG79266
#define HG72611
#define HG72625
#define HG47991
#define HG27367
#define HG72671
#define HG72729 ss = XP_STRDUP(XP_GetString(XFE_SECURITY_DISABLED));
#define HG78268
#define HG78261
#define HG12675
#define HG87163
#define HG78262
#define HG87268
#define HG78265
#define HG87627
#define HG72721
#define HG13267
#define HG87262
#define HG71265
#define HG72587
#define HG87271
#define HG21989
#define HG12976
#define HG87265
#define HG78272
#define HG87921
#define HG72881
#define HG87111
#define HG27632
#define HG87782
#define HG37211
#define HG11326
#define HG72819
#define HG71199
#define HG18159
#define HG28688
#define HG82160
#define HG92799
#define HG28190
#define HG87291
#define HG17211
#define HG01019
#define HG01283
#define HG98269
#define HG91001
#define HG92179
#define HG92769
#define HG98268
#define HG82688
#define HG32179
#define HG82687
#define HG78277
#define HG91268
#define HG10219
#define HG01092
#define HG72711
#define HG78281
#define HG18181
#define HG82981
#define HG87288
#define HG82111 FALSE
#define HG92828
#define HG12821
#define HG12111
#define HG82128
#define HG81210
#define HG03833
#define HG12928
#define HG00298
#define HG02920
#define HG02092
#define HG28999
#define HG09219
#define HG89219
#define HG82198
#define HG20303 FALSE
#define HG02023 FALSE
#define HG39875
#define HG07326
#define HG82883
#define HG20388
#define HG72988 FALSE
#define HG17272
#define HG00288
#define HG82992
#define HG28732
#define HG20931
#define HG29322
#define HG29281
#define HG20363
#define HG98200
#define HG71611
#define HG11111
#define HG21933
#define HG28921
#define HG82872 NULL, NULL
#define HG72723
#define HG20192
#define HG20198
#define HG35220
#define HG82811
#define HG97291
#define HG12922
#define HG28182
#define HG12832
#define HG20938
#define HG71710
#define HG11299
#define HG10291
#define HG01922
#define HG10287
#define HG10297
#define HG81272
#define HG02621
#define HG19282
#define HG92727
#define HG82719
#define HG21817
#define HG81761
#define HG12172
#define HG10282
#define HG29081
#define HG21182
#define HG02030
#define HG93649
#define HG18966
#define HG27311
#define HG89217
#define HG82167
#define HG21761
#define HG10280
#define HG19271
#define HG10977
#define HG19711
#define HG19189
#define HG71676
#define HG71851
#define HG78266
#define HG18177
#define HG18760
#define HG71661
#define HG90177
#define HG79299
#define HG21897 m_port_text
#define HG17661 m_port_text
#define HG18261
#define HG19877
#define HG19871
#define HG19773
#define HG18162
#define HG13181
#define HG14871 FALSE
#define HG19861 FALSE
#define HG21511
#define HG19721
#define HG19511
#define HG17271
#define HG18671
#define HG19616
#define HG19879
#define HG17922
#define HG98219 SetDlgItemInt(IDC_EDIT_PORT_NO, LDAP_PORT);
#define HG92710
#define HG27626
#define HG28981
#define HG72186
#define HG92672
#define HG90271
#define HG92177
#define HG98216
#define HG91761 SetDlgItemInt(IDC_EDIT_PORT_NO, LDAP_PORT);
#define HG51387
#define HG51388
#define HG51389
#define HG43287
#define HG43288
#define HG91827
#define HG92380
#define HG28336
#define HG02070
#define HG62519
#define HG09842 FALSE
#define HG09843 FALSE
#define HG09844 FALSE
#define HG09845 f[0] = 0;
#define HG09846 \
PR_Init("mimefilt", 24, 1, 0); \
RNG_RNGInit(); \
#define HG09847
#define HG09848 "usage: %s [ URL [ -fancy | -no-fancy | -html | -raw | -outline ]]\n"
#define HG09849
#define HG09850
#define HG09851
#define HG09852
#define HG09853
#define HG09854
#define HG09855
#define HG09856
#define HG09857
#define HG09858
#define HG09859
#define HG09860
#define HG09861
#define HG09862
#define HG09863
#define HG09864
#define HG09865
#define HG09866
#define HG09867
#define HG09868
#define HG09869 \
/* If we're supposed to write this object, but aren't supposed to convert */ \
/* it to HTML, simply pass it through unaltered. (But, if we're supposed */ \
/* to ******* ... uh, do something else.) */ \
/* */ \
if (obj->output_p && \
obj->options && \
!obj->options->write_html_p && \
obj->options->output_fn) \
return MimeObject_write(obj, line, length, TRUE); \
#define HG09870
#define HG09871
#define HG09872 status = MimeHeaders_write_raw_headers(msg->hdrs, obj->options, 0);
#define HG09873 altform_p = (msg && msg->hdrs);
#define HG43771
#define HG56232 0
#define HG78388
#define HG80200
#define HG88918
#define HG89321
#define HG82921
#define HG82991
#define HG89202 middle_key = 0;
#define HG82001 "%s<IMG SRC=\"%s\" BORDER=0>%s"
#define HG28974
#define HG87988
#define HG43290
#define HG89332 0
#define HG09878
/* begin mail/news netlib */
#define HG37838
#define HG64967 \
XP_Bool m_syncX1;
#define HG20039 \
m_syncX1 = FALSE;
#define HG65202
#define HG46644
#define HG38728
#define HG09874
#define HG56327
#define HG78485
#define HG22334 \
url = PR_smprintf("repl-ldap://%s%s:%d/%s", auth ? auth : "", \
server->serverName, server->port, \
server->searchBase); \
#define HG40923
#define HG75778
#define HG17482 XP_STRDUP
#define HG15296 XP_STRDUP
#define HG47233 \
"ssl.h" \
#define HG09893 \
"secnav.h"
#define HG64643 XP_STRDUP
#define HG63218 XP_STRDUP
#define HG40855 \
"ssl.h" \
#define HG07711
#define HG25430
#define HG43574
#define HG43072
#define HG51514
#define HG28477
#define HG42871
#define HG25431
#define HG55785
#define HG51966 \
net_graceful_shutdown(con->csock, FALSE); \
#define HG72589 \
urlScheme = "news:"; \
#define HG56946 \
urlScheme = "news:"; \
#define HG43575
#define HG05417 \
defport = 0;\
#define HG05998 \
port == NEWS_PORT \
#define HG45873 \
*bValP = FALSE; \
#define HG66376
#define HG78293 0
#define HG01869
#define HG51154 ce->URL_s->address
#define HG28465 NEWS_PORT
#define HG42817 FALSE
#define HG65321 cd->control_con->hostname
#define HG31966 "secnav.h"
#define HG31996 "ssl.h"
#define HG79357 "sslerr.h"
#define HG17322
#define HG54697 IMAP4_PORT
#define HG72598 FALSE
#define HG94391 FALSE
#define HG65837
#define HG17406
#define HG32397
#define HG26051
#define HG03686 0
#define HG47042
#define HG41242
#define HG53733
#define HG57771 \
if (!password) return -1; \
#define HG12837 XP_STRDUP
#define HG04206
#define HG68978 TRUE
#define HG09609
#define HG56055
#define HG10349
#define HG40702
#define HG30626
#define HG16713
#define HG92990 \
if (CD_AUTH_LOGIN_METHOD) \
{ \
CD_NEXT_STATE = SMTP_SEND_AUTH_LOGIN_USERNAME; \
CD_NEXT_STATE_AFTER_RESPONSE = SMTP_AUTH_LOGIN_RESPONSE; \
} \
else \
{ \
CD_NEXT_STATE = SMTP_SEND_HELO_RESPONSE; \
} \
#define HG18210
#define HG76227
#define HG79144
#define HG26788
#define HG77067
#define HG15779
#define HG06474 FALSE
#define HG70187 TRUE
#define HG50707 FALSE
#define HG27293
#define HG68946
#define HG11764
#define HG18517 FALSE
#define HG74130 FALSE
#define HG38712
#define HG12690
/* end mail/news netlib */
#endif /* _ROSETTA_H_ */

View File

@@ -1,93 +0,0 @@
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef _SECCOMON_H_
#define _SECCOMON_H_
#include <ctype.h>
#include <string.h>
#include <stddef.h>
#include <stdlib.h>
#include "prmem.h"
#include "plarena.h"
#include "prtypes.h"
#include "prlog.h"
#include "plstr.h"
#include "prio.h"
#if defined(XP_CPLUSPLUS)
# define SEC_BEGIN_PROTOS extern "C" {
# define SEC_END_PROTOS }
#else
# define SEC_BEGIN_PROTOS
# define SEC_END_PROTOS
#endif
#include "secstubt.h"
#include "secstubs.h"
#define PORT_Strlen(s) strlen(s)
#define PORT_Strcasecmp PL_strcasecmp
#define PORT_Memset memset
#define PORT_Strcmp strcmp
#define PORT_Assert PR_ASSERT
#define PORT_Memcpy memcpy
#define PORT_Strchr strchr
SEC_BEGIN_PROTOS
void *
PORT_Alloc(size_t bytes);
void *
PORT_Realloc(void *oldptr, size_t bytes);
void *
PORT_ZAlloc(size_t bytes);
void
PORT_Free(void *ptr);
void
PORT_ZFree(void *ptr, size_t len);
PRArenaPool *
PORT_NewArena(unsigned long chunksize);
void *
PORT_ArenaAlloc(PRArenaPool *arena, size_t size);
void *
PORT_ArenaZAlloc(PRArenaPool *arena, size_t size);
void
PORT_FreeArena(PRArenaPool *arena, PRBool zero);
void *
PORT_ArenaGrow(PRArenaPool *arena, void *ptr, size_t oldsize, size_t newsize);
void *
PORT_ArenaMark(PRArenaPool *arena);
void
PORT_ArenaRelease(PRArenaPool *arena, void *mark);
SEC_END_PROTOS
#endif /* _SECCOMON_H_ */

View File

@@ -1,35 +0,0 @@
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef __SEC_ERR_H_
#define __SEC_ERR_H_
#ifdef XP_MAC
#define SEC_ERROR_BASE (-2000)
#else
#define SEC_ERROR_BASE (-0x2000)
#endif
#define SEC_ERROR_LIMIT (SEC_ERROR_BASE + 1000)
#define IS_SEC_ERROR(code) \
(((code) >= SEC_ERROR_BASE) && ((code) < SEC_ERROR_LIMIT))
#endif /* __SEC_ERR_H_ */

View File

@@ -1,21 +0,0 @@
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "seccomon.h"

View File

@@ -1,22 +0,0 @@
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "seccomon.h"
#include "secstubn.h"

View File

@@ -1,140 +0,0 @@
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "seccomon.h"
#include "prmem.h"
#include "prerror.h"
#include "plarena.h"
#include "prlog.h"
void *
PORT_Alloc(size_t bytes)
{
void *rv;
/* Always allocate a non-zero amount of bytes */
rv = (void *)PR_Malloc(bytes ? bytes : 1);
return rv;
}
void *
PORT_Realloc(void *oldptr, size_t bytes)
{
void *rv;
rv = (void *)PR_Realloc(oldptr, bytes);
return rv;
}
void *
PORT_ZAlloc(size_t bytes)
{
void *rv;
/* Always allocate a non-zero amount of bytes */
rv = (void *)PR_Calloc(1, bytes ? bytes : 1);
return rv;
}
void
PORT_Free(void *ptr)
{
if (ptr) {
PR_Free(ptr);
}
}
void
PORT_ZFree(void *ptr, size_t len)
{
if (ptr) {
memset(ptr, 0, len);
PR_Free(ptr);
}
}
PRArenaPool *
PORT_NewArena(unsigned long chunksize)
{
PRArenaPool *arena;
arena = PORT_ZAlloc(sizeof(PRArenaPool));
if ( arena != NULL ) {
PR_InitArenaPool(arena, "security", chunksize, sizeof(double));
}
return(arena);
}
void *
PORT_ArenaAlloc(PRArenaPool *arena, size_t size)
{
void *p;
PR_ARENA_ALLOCATE(p, arena, size);
return(p);
}
void *
PORT_ArenaZAlloc(PRArenaPool *arena, size_t size)
{
void *p;
PR_ARENA_ALLOCATE(p, arena, size);
if (p == NULL) {
} else {
memset(p, 0, size);
}
return(p);
}
/* XXX - need to zeroize!! - jsw */
void
PORT_FreeArena(PRArenaPool *arena, PRBool zero)
{
PR_FinishArenaPool(arena);
PORT_Free(arena);
}
void *
PORT_ArenaGrow(PRArenaPool *arena, void *ptr, size_t oldsize, size_t newsize)
{
PR_ASSERT(newsize >= oldsize);
PR_ARENA_GROW(ptr, arena, oldsize, ( newsize - oldsize ) );
return(ptr);
}
void *
PORT_ArenaMark(PRArenaPool *arena)
{
return PR_ARENA_MARK(arena);
}
void
PORT_ArenaRelease(PRArenaPool *arena, void *mark)
{
PR_ARENA_RELEASE(arena, mark);
}

View File

@@ -1,21 +0,0 @@
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "seccomon.h"

View File

@@ -1,254 +0,0 @@
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef _SECSTUBN_H_
#define _SECSTUBN_H_
#include "xp.h"
#include "ntypes.h"
#include "net.h"
typedef struct _digests DIGESTS;
typedef struct _zig ZIG;
typedef struct _zigcontext ZIG_Context;
typedef struct _peheader PEHeader;
typedef struct SOBITEM_ {
char *pathname;
int type;
size_t size;
void *data;
} SOBITEM;
typedef struct FINGERZIG_ {
size_t length;
void *key;
CERTCertificate *cert;
} FINGERZIG;
#define ZIG_CB_SIGNAL 1
#define ZIG_SIGN 10
#define ZIG_F_GUESS 0
#define ZIG_MF 2
#define ZIG_ERR_PNF 12
/* certificate stuff */
#define ZIG_C_COMPANY 1
#define ZIG_C_CA 2
#define ZIG_C_SERIAL 3
#define ZIG_C_EXPIRES 4
#define ZIG_C_NICKNAME 5
#define ZIG_C_FP 6
#define ZIG_C_JAVA 100
SEC_BEGIN_PROTOS
void
SECNAV_Posting(PRFileDesc *fd);
void
SECNAV_HTTPHead(PRFileDesc *fd);
void
SECNAV_RegisterNetlibMimeConverters();
char *
SECNAV_MungeString(const char *unmunged_string);
char *
SECNAV_UnMungeString(const char *munged_string);
PRBool
SECNAV_GenKeyFromChoice(void *proto_win, LO_Element *form,
char *choiceString, char *challenge,
char *typeString, char *pqgString,
char **pValue, PRBool *pDone);
char **
SECNAV_GetKeyChoiceList(char *type, char *pqgString);
PRBool
SECNAV_SecurityDialog(MWContext *context, int state);
void
NET_InitCertLdapProtocol(void);
const char *
SECNAV_GetPolicyNameString(void);
int
SECNAV_InitConfigObject(void);
int
SECNAV_RunInitialSecConfig(void);
void
SECNAV_EarlyInit(void);
void
SECNAV_Init(void);
void
SECNAV_Shutdown(void);
void
SECNAV_SecurityAdvisor(void *proto_win, URL_Struct *url);
char *
SECNAV_MakeCertButtonString(CERTCertificate *cert);
int
SECNAV_SecURLData(char *which, NET_StreamClass *stream, MWContext *cx);
char *
SECNAV_SecURLContentType(char *which);
int
SECNAV_SecHandleSecurityAdvisorURL(MWContext *cx, const char *which);
void
SECNAV_HandleInternalSecURL(URL_Struct *url, MWContext *cx);
SECStatus
SECNAV_ComputeFortezzaProxyChallengeResponse(MWContext *context,
char *asciiChallenge,
char **signature_out,
char **clientRan_out,
char **certChain_out);
char *
SECNAV_PrettySecurityStatus(int level, unsigned char *status);
char *
SECNAV_SecurityVersion(PRBool longForm);
char *
SECNAV_SSLCapabilities(void);
unsigned char *
SECNAV_SSLSocketStatus(PRFileDesc *fd, int *return_security_level);
unsigned char *
SECNAV_CopySSLSocketStatus(unsigned char *status);
unsigned int
SECNAV_SSLSocketStatusLength(unsigned char *status);
char *
SECNAV_SSLSocketCertString(unsigned char *status);
PRBool
SECNAV_CompareCertsForRedirection(unsigned char *status1,
unsigned char *status2);
CERTCertificate *
SECNAV_CertFromSSLSocketStatus(unsigned char *status);
DIGESTS *PR_CALLBACK
SOB_calculate_digest(void XP_HUGE *data, long length);
int PR_CALLBACK
SOB_verify_digest(ZIG *siglist, const char *name, DIGESTS *dig);
void PR_CALLBACK
SOB_destroy (ZIG *zig);
char *
SOB_get_error (int status);
ZIG_Context *
SOB_find(ZIG *zig, char *pattern, int type);
int
SOB_find_next(ZIG_Context *ctx, SOBITEM **it);
void
SOB_find_end(ZIG_Context *ctx);
char *
SOB_get_url (ZIG *zig);
ZIG *
SOB_new (void);
int
SOB_set_callback (int type, ZIG *zig,
int (*fn) (int status, ZIG *zig,
const char *metafile,
char *pathname, char *errortext));
int PR_CALLBACK
SOB_cert_attribute(int attrib, ZIG *zig, long keylen, void *key,
void **result, unsigned long *length);
int PR_CALLBACK
SOB_stash_cert(ZIG *zig, long keylen, void *key);
int SOB_parse_manifest(char XP_HUGE *raw_manifest, long length,
const char *path, const char *url, ZIG *zig);
void
SECNAV_signedAppletPrivileges(void *proto_win, char *javaPrin,
char *javaTarget, char *risk, PRBool isCert);
void
SECNAV_signedAppletPrivilegesOnMozillaThread(void *proto_win, char *javaPrin,
char *javaTarget, char *risk, PRBool isCert);
char *
SOB_JAR_list_certs (void);
int
SOB_JAR_validate_archive (char *filename);
void *
SOB_JAR_new_hash (int alg);
void *
SOB_JAR_hash (int alg, void *cookie, int length, void *data);
void *
SOB_JAR_end_hash (int alg, void *cookie);
int
SOB_JAR_sign_archive (char *nickname, char *password, char *sf, char *outsig);
int
SOB_set_context (ZIG *zig, MWContext *mw);
int
SOB_pass_archive(int format, char *filename, const char *url, ZIG *zig);
int
SOB_get_metainfo(ZIG *zig, char *name, char *header, void **info,
unsigned long *length);
int
SOB_verified_extract(ZIG *zig, char *path, char *outpath);
NET_StreamClass *
SECNAV_MakePreencryptedWriteStream(FO_Present_Types format_out, void *data,
URL_Struct *url, MWContext *window_id);
SEC_END_PROTOS
#endif /* _SECSTUBN_H_ */

View File

@@ -1,156 +0,0 @@
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef _SECSTUBS_H_
#define _SECSTUBS_H_
SEC_BEGIN_PROTOS
CERTCertificate *
CERT_DupCertificate(CERTCertificate *cert);
void
CERT_DestroyCertificate(CERTCertificate *cert);
CERTCertificate *
CERT_NewTempCertificate (CERTCertDBHandle *handle, SECItem *derCert,
char *nickname, PRBool isperm, PRBool copyDER);
CERTCertDBHandle *
CERT_GetDefaultCertDB(void);
CERTCertificate *
CERT_DecodeCertFromPackage(char *certbuf, int certlen);
char *
CERT_HTMLCertInfo(CERTCertificate *cert, PRBool showImages, PRBool showIssuer);
PRBool
CERT_CompareCertsForRedirection(CERTCertificate *c1, CERTCertificate *c2);
unsigned long
SSL_SecurityCapabilities(void);
int
SSL_SetSockPeerID(PRFileDesc *fd, char *peerID);
int
SSL_SecurityStatus(PRFileDesc *fd, int *on, char **cipher,
int *keySize, int *secretKeySize,
char **issuer, char **subject);
CERTCertificate *
SSL_PeerCertificate(PRFileDesc *fd);
PRBool
SSL_IsDomestic(void);
SECStatus
RNG_RNGInit(void);
SECStatus
RNG_GenerateGlobalRandomBytes(void *dest, size_t len);
size_t
RNG_GetNoise(void *buf, size_t maxbytes);
void
RNG_SystemInfoForRNG(void);
void RNG_FileForRNG(char *filename);
SECStatus
RNG_RandomUpdate(void *data, size_t bytes);
SECStatus
MD5_HashBuf(unsigned char *dest, const unsigned char *src,
uint32 src_length);
MD5Context *
MD5_NewContext(void);
void
MD5_DestroyContext(MD5Context *cx, PRBool freeit);
void
MD5_Begin(MD5Context *cx);
void
MD5_Update(MD5Context *cx, const unsigned char *input, unsigned int inputLen);
void
MD5_End(MD5Context *cx, unsigned char *digest,
unsigned int *digestLen, unsigned int maxDigestLen);
SECStatus
SHA1_HashBuf(unsigned char *dest, const unsigned char *src, uint32 src_length);
SHA1Context *
SHA1_NewContext(void);
void
SHA1_DestroyContext(SHA1Context *cx, PRBool freeit);
void
SHA1_Begin(SHA1Context *cx);
void
SHA1_Update(SHA1Context *cx, const unsigned char *input, unsigned int inputLen);
void
SHA1_End(SHA1Context *cx, unsigned char *digest,
unsigned int *digestLen, unsigned int maxDigestLen);
/*
* Generic hash api. In the future this should be the only public
* API.
*/
extern unsigned int HASH_ResultLen(HASH_HashType type);
extern unsigned int HASH_ResultLenContext(HASHContext *context);
extern SECStatus HASH_HashBuf(HASH_HashType type, unsigned char *dest,
unsigned char *src, uint32 src_len);
extern HASHContext *HASH_Create(HASH_HashType type);
extern HASHContext *HASH_Clone(HASHContext *context);
extern void HASH_Destroy(HASHContext *context);
extern void HASH_Begin(HASHContext *context);
extern void HASH_Update(HASHContext *context, const unsigned char *src,
unsigned int len);
extern void HASH_End(HASHContext *context, unsigned char *result,
unsigned int *result_len, unsigned int max_result_len);
char *
BTOA_DataToAscii(const unsigned char *data, unsigned int len);
unsigned char *
ATOB_AsciiToData(const char *string, unsigned int *lenp);
SEC_END_PROTOS
#endif /* _SECSTUBS_H_ */

View File

@@ -1,71 +0,0 @@
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef _SECSTUBT_H_
#define _SECSTUBT_H_
typedef struct _item {
unsigned char *data;
unsigned long len;
} SECItem;
struct CERTCertificateStr {
SECItem derCert;
};
typedef struct CERTCertificateStr CERTCertificate;
typedef struct _certdb CERTCertDBHandle;
typedef struct _md5context MD5Context;
typedef struct _sha1context SHA1Context;
typedef struct HASHContextStr HASHContext;
#define MD5_LENGTH 16
#define SHA1_LENGTH 20
typedef enum {
HASH_AlgNULL,
HASH_AlgMD2,
HASH_AlgMD5,
HASH_AlgSHA1,
HASH_AlgTOTAL
} HASH_HashType;
typedef enum _SECStatus {
SECWouldBlock = -2,
SECFailure = -1,
SECSuccess = 0
} SECStatus;
#define SSL_SECURITY_STATUS_NOOPT -1
#define SSL_SECURITY_STATUS_OFF 0
#define SSL_SECURITY_STATUS_ON_HIGH 1
#define SSL_SECURITY_STATUS_ON_LOW 2
#define SSL_SECURITY_STATUS_FORTEZZA 3
#define SSL_SC_RSA 0x00000001L
#define SSL_SC_MD2 0x00000010L
#define SSL_SC_MD5 0x00000020L
#define SSL_SC_RC2_CBC 0x00001000L
#define SSL_SC_RC4 0x00002000L
#define SSL_SC_DES_CBC 0x00004000L
#define SSL_SC_DES_EDE3_CBC 0x00008000L
#define SSL_SC_IDEA_CBC 0x00010000L
#endif /* _SECSTUBT_H_ */

View File

@@ -1,21 +0,0 @@
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "seccomon.h"

View File

@@ -1,41 +0,0 @@
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#ifndef __SSL_ERR_H_
#define __SSL_ERR_H_
#ifdef XP_MAC
#define SSL_ERROR_BASE (-3000)
#else
#define SSL_ERROR_BASE (-0x3000)
#endif
#define SSL_ERROR_LIMIT (SSL_ERROR_BASE + 1000)
#ifndef NO_SECURITY_ERROR_ENUM
typedef enum {
SSL_ERROR_BAD_CERTIFICATE = SSL_ERROR_BASE + 4
} SSLErrorCodes;
#endif
#define IS_SSL_ERROR(code) \
(((code) >= SSL_ERROR_BASE) && ((code) < SSL_ERROR_LIMIT))
#endif /* __SSL_ERR_H_ */

View File

@@ -1,22 +0,0 @@
/*
* The contents of this file are subject to the Netscape Public
* License Version 1.1 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.mozilla.org/NPL/
*
* Software distributed under the License is distributed on an "AS
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
* The Original Code is mozilla.org code.
*
* The Initial Developer of the Original Code is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All
* Rights Reserved.
*
* Contributor(s):
*/
#include "seccomon.h"
#include "secstubn.h"