1 #ifndef CLIB_CRYPTOSTORAGE_PROTOS_H
    2 #define CLIB_CRYPTOSTORAGE_PROTOS_H
    3 
    4 /*
    5 	cryptostorage.library C prototypes
    6 
    7 	Copyright © 2017-2019 The MorphOS Development Team, All Rights Reserved.
    8 */
    9 
   10 #ifndef LIBRARIES_CRYPTOSTORAGE_H
   11 # include <libraries/cryptostorage.h>
   12 #endif
   13 
   14 #ifdef __cplusplus
   15 extern "C" {
   16 #endif /* __cplusplus */
   17 
   18 struct CryptoStorageCtx *CryptoStorageOpenA( struct TagItem *tags );
   19 #if !defined(USE_INLINE_STDARG)
   20 struct CryptoStorageCtx *CryptoStorageOpen( Tag tag1, ... );
   21 #endif
   22 LONG CryptoStorageCommit( struct CryptoStorageCtx *ctx );
   23 LONG CryptoStorageClose( struct CryptoStorageCtx *ctx );
   24 LONG CryptoStorageUnlockA( struct CryptoStorageCtx *ctx, struct TagItem *tags );
   25 #if !defined(USE_INLINE_STDARG)
   26 LONG CryptoStorageUnlock( struct CryptoStorageCtx *ctx, Tag tag1, ... );
   27 #endif
   28 void CryptoStorageLock( struct CryptoStorageCtx *ctx );
   29 LONG CryptoStorageChangePassphraseA( struct CryptoStorageCtx *ctx, struct TagItem *tags );
   30 #if !defined(USE_INLINE_STDARG)
   31 LONG CryptoStorageChangePassphrase( struct CryptoStorageCtx *ctx, Tag tag1, ... );
   32 #endif
   33 LONG CryptoStorageStore( struct CryptoStorageCtx *ctx, CONST_STRPTR key, CONST_STRPTR value, ULONG valsize );
   34 LONG CryptoStorageFetch( struct CryptoStorageCtx *ctx, CONST_STRPTR key, UBYTE *value, ULONG *valsize );
   35 STRPTR *CryptoStorageQueryKeyArray( struct CryptoStorageCtx *ctx );
   36 void CryptoStorageFreeKeyArray( struct CryptoStorageCtx *ctx, STRPTR *array );
   37 /* V52 */
   38 LONG CryptoStorageClear( struct CryptoStorageCtx *ctx );
   39 LONG CryptoStorageExport( struct CryptoStorageCtx *ctx, APTR buf, ULONG *size );
   40 LONG CryptoStorageImport( struct CryptoStorageCtx *ctx, CONST_APTR buf, ULONG size );
   41 
   42 #ifdef __cplusplus
   43 }
   44 #endif /* __cplusplus */
   45 
   46 #endif /* CLIB_CRYPTOSTORAGE_PROTOS_H */