Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

xbestruct.cc

Go to the documentation of this file.
00001 /* 
00002  *      HT Editor
00003  *      xbestruct.cc
00004  *
00005  *      Copyright (C) 2003 Stefan Esser
00006  *
00007  *      This program is free software; you can redistribute it and/or modify
00008  *      it under the terms of the GNU General Public License version 2 as
00009  *      published by the Free Software Foundation.
00010  *
00011  *      This program is distributed in the hope that it will be useful,
00012  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00014  *      GNU General Public License for more details.
00015  *
00016  *      You should have received a copy of the GNU General Public License
00017  *      along with this program; if not, write to the Free Software
00018  *      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00019  */
00020 
00021 
00022 #include "global.h"
00023 #include "htendian.h"
00024 #include "xbestruct.h"
00025 
00026 /* we do not need to swap the digital signature anyway */
00027 byte XBE_IMAGE_HEADER_struct[] = {
00028 
00029         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00030         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00031         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00032         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00033         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00034         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00035         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00036         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00037         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00038         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00039         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00040         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00041         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00042         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00043         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00044         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00045         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00046         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00047         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00048         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00049         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00050         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00051         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00052         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00053         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00054         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00055         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00056         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00057         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00058         0
00059 };
00060 
00061 byte XBE_CERTIFICATE_struct[] = {
00062         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00063         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00064         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00065         
00066         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00067         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00068         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00069         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00070         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00071         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00072         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00073         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00074         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00075         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00076         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00077         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00078         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00079         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00080         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00081         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00082         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00083         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00084         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00085         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00086         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00087         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00088         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00089         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00090         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00091         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00092         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00093         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00094         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00095         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00096         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00097         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00098         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00099         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00100         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00101         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00102         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00103         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00104         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00105         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00106 
00107         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00108         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00109         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00110         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00111         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00112         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00113         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00114         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00115         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00116         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00117         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00118         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00119         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00120         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00121         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00122         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00123         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00124         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00125         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00126         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00127         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00128 
00129         0 /* rest are only byte structs */
00130 };
00131 
00132 byte XBE_SECTION_HEADER_struct[] = {
00133         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00134         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00135         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00136         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00137         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00138         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00139         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00140         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00141         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00142         0 
00143         /* SHA signature must not be swapped */
00144 };
00145 
00146 byte XBE_LIBRARY_VERSION_struct[] = {
00147         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00148         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00149         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00150         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00151         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00152         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00153         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00154         STRUCT_ENDIAN_BYTE | STRUCT_ENDIAN_HOST,
00155         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00156         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00157         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00158         STRUCT_ENDIAN_WORD | STRUCT_ENDIAN_HOST,
00159         0
00160 };
00161 
00162 byte XBE_TLS_DIRECTORY_struct[] = {
00163         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00164         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00165         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00166         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00167         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00168         STRUCT_ENDIAN_DWORD | STRUCT_ENDIAN_HOST,
00169         0
00170 };

Generated on Fri May 7 21:15:46 2004 by doxygen 1.3.5