]>
git.saurik.com Git - apple/security.git/blob - SecuritySNACCRuntime/c++-lib/inc/asn-null.h
7206786242289f036a63a1b8a598fe7fb9e09e9a
2 * Copyright (c) 2000-2001 Apple Computer, Inc. All Rights Reserved.
4 * The contents of this file constitute Original Code as defined in and are
5 * subject to the Apple Public Source License Version 1.2 (the 'License').
6 * You may not use this file except in compliance with the License. Please obtain
7 * a copy of the License at http://www.apple.com/publicsource and read it before
10 * This Original Code and all software distributed under the License are
11 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS
12 * OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT
13 * LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14 * PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the
15 * specific language governing rights and limitations under the License.
19 // file: .../c++-lib/inc/asn-null.h - C++ version of ASN.1 NULL
22 // Copyright (C) 1992 Michael Sample and the University of British Columbia
24 // This library is free software; you can redistribute it and/or
25 // modify it provided that this copyright/license information is retained
28 // If you modify this file, you must clearly indicate your changes.
30 // This source code is distributed in the hope that it will be
31 // useful, but WITHOUT ANY WARRANTY; without even the implied warranty
32 // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34 // $Header: /cvs/Darwin/src/live/Security/SecuritySNACCRuntime/c++-lib/inc/asn-null.h,v 1.1.1.1 2001/05/18 23:14:06 mb Exp $
35 // $Log: asn-null.h,v $
36 // Revision 1.1.1.1 2001/05/18 23:14:06 mb
37 // Move from private repository to open source repository
39 // Revision 1.3 2001/05/05 00:59:18 rmurphy
40 // Adding darwin license headers
42 // Revision 1.2 2000/06/15 18:48:24 dmitch
43 // Snacc-generated source files, now part of CVS tree to allow for cross-platform build of snaccRuntime.
45 // Revision 1.1.1.1 2000/03/09 01:00:05 rmurphy
46 // Base Fortissimo Tree
48 // Revision 1.2 1999/03/21 02:07:33 mb
49 // Added Copy to every AsnType.
51 // Revision 1.1 1999/02/25 05:21:44 mb
52 // Added snacc c++ library
54 // Revision 1.5 1997/02/16 10:08:29 rj
55 // comment out an unused argument
57 // Revision 1.4 1995/07/24 17:53:57 rj
58 // #if TCL ... #endif wrapped into #if META ... #endif
60 // changed `_' to `-' in file names.
62 // Revision 1.3 1994/10/08 04:18:06 rj
63 // code for meta structures added (provides information about the generated code itself).
65 // code for Tcl interface added (makes use of the above mentioned meta code).
67 // virtual inline functions (the destructor, the Clone() function, BEnc(), BDec() and Print()) moved from inc/*.h to src/*.C because g++ turns every one of them into a static non-inline function in every file where the .h file gets included.
69 // made Print() const (and some other, mainly comparison functions).
71 // several `unsigned long int' turned into `size_t'.
73 // Revision 1.2 1994/08/28 10:00:52 rj
74 // comment leader fixed.
76 // Revision 1.1 1994/08/28 09:20:38 rj
77 // first check-in. for a list of changes to the snacc-1.1 distribution please refer to the ChangeLog.
82 class AsnNull
: public AsnType
87 virtual AsnType
* Clone () const ;
88 virtual AsnType
* Copy () const ;
90 AsnLen
BEncContent ( BUF_TYPE
/*b*/ ) { return 0 ; }
91 void BDecContent ( BUF_TYPE b
, AsnTag tagId
, AsnLen elmtLen
, AsnLen
& bytesDecoded
, ENV_TYPE env
);
92 AsnLen
BEnc ( BUF_TYPE b
);
93 void BDec ( BUF_TYPE b
, AsnLen
& bytesDecoded
, ENV_TYPE env
);
97 void Print ( ostream
& os
) const ;
100 static const AsnNullTypeDesc _desc
;
102 const AsnTypeDesc
* _getdesc () const ;
105 int TclGetVal ( Tcl_Interp
*) const ;
106 int TclSetVal ( Tcl_Interp
*, const char * val
);
111 #endif /* conditional include */