7
* Copyright (C) 2006-2010 Oracle Corporation
7
* Copyright (C) 2006-2012 Oracle Corporation
9
9
* This file is part of VirtualBox Open Source Edition (OSE), as
10
10
* available from http://www.virtualbox.org. This file is free software;
73
74
LocationInfo locInfo; // location info for the currently processed OVF
74
75
bool fManifest; // Create a manifest file on export
76
bool fSha256; // true = SHA256 (OVF 2.0), false = SHA1 (OVF 1.0)
75
77
RTCList<ImportOptions_T> optList;
77
79
ovf::OVFReader *pReader;
224
226
Utf8Str convertNetworkAttachmentTypeToString(NetworkAttachmentType_T type);
226
typedef struct SHA1STORAGE
228
typedef struct SHASTORAGE
228
230
PVDINTERFACE pVDImageIfaces;
229
231
bool fCreateDigest;
232
bool fSha256; /* false = SHA1 (OVF 1.x), true = SHA256 (OVF 2.0) */
230
233
Utf8Str strDigest;
231
} SHA1STORAGE, *PSHA1STORAGE;
234
} SHASTORAGE, *PSHASTORAGE;
233
PVDINTERFACEIO Sha1CreateInterface();
236
PVDINTERFACEIO ShaCreateInterface();
234
237
PVDINTERFACEIO FileCreateInterface();
235
238
PVDINTERFACEIO TarCreateInterface();
236
int Sha1ReadBuf(const char *pcszFilename, void **ppvBuf, size_t *pcbSize, PVDINTERFACEIO pCallbacks, void *pvUser);
237
int Sha1WriteBuf(const char *pcszFilename, void *pvBuf, size_t cbSize, PVDINTERFACEIO pCallbacks, void *pvUser);
239
int ShaReadBuf(const char *pcszFilename, void **ppvBuf, size_t *pcbSize, PVDINTERFACEIO pIfIo, void *pvUser);
240
int ShaWriteBuf(const char *pcszFilename, void *pvBuf, size_t cbSize, PVDINTERFACEIO pIfIo, void *pvUser);
239
242
#endif // ____H_APPLIANCEIMPLPRIVATE