]> git.saurik.com Git - apple/security.git/blob - SecuritySNACCRuntime/compiler/back-ends/tag-util.h
Security-54.1.7.tar.gz
[apple/security.git] / SecuritySNACCRuntime / compiler / back-ends / tag-util.h
1 /*
2 * Copyright (c) 2000-2001 Apple Computer, Inc. All Rights Reserved.
3 *
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
8 * using this file.
9 *
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.
16 */
17
18
19 /*
20 * compiler/back_ends/c_gen/tag_util.h - utilities for dealing with tags
21 *
22 * MS 92
23 * Copyright (C) 1991, 1992 Michael Sample
24 * and the University of British Columbia
25 *
26 * This program is free software; you can redistribute it and/or modify
27 * it under the terms of the GNU General Public License as published by
28 * the Free Software Foundation; either version 2 of the License, or
29 * (at your option) any later version.
30 *
31 * $Header: /cvs/root/Security/SecuritySNACCRuntime/compiler/back-ends/Attic/tag-util.h,v 1.1.1.1 2001/05/18 23:14:09 mb Exp $
32 * $Log: tag-util.h,v $
33 * Revision 1.1.1.1 2001/05/18 23:14:09 mb
34 * Move from private repository to open source repository
35 *
36 * Revision 1.2 2001/05/05 00:59:27 rmurphy
37 * Adding darwin license headers
38 *
39 * Revision 1.1.1.1 1999/03/16 18:06:39 aram
40 * Originals from SMIME Free Library.
41 *
42 * Revision 1.3 1995/07/25 18:15:29 rj
43 * changed `_' to `-' in file names.
44 *
45 * Revision 1.2 1994/10/08 03:48:19 rj
46 * since i was still irritated by cpp standing for c++ and not the C preprocessor, i renamed them to cxx (which is one known suffix for C++ source files). since the standard #define is __cplusplus, cplusplus would have been the more obvious choice, but it is a little too long.
47 *
48 * Revision 1.1 1994/08/28 09:48:40 rj
49 * first check-in. for a list of changes to the snacc-1.1 distribution please refer to the ChangeLog.
50 *
51 */
52
53
54 TagList *GetTags PROTO ((Type *t, int *stoleChoiceTags));
55 void FreeTags PROTO ((TagList *tl));
56 int CountTags PROTO ((Type *t));
57 unsigned long int TagByteLen PROTO ((unsigned long int tagCode));
58 char *Class2ClassStr PROTO ((int class)); /* class defined in asn1module.h */
59 char *Form2FormStr PROTO ((BER_FORM form));
60 char *Code2UnivCodeStr PROTO ((BER_UNIV_CODE code));