Rizin
unix-like reverse engineering framework and cli tools
zip_fopen_encrypted.c File Reference
#include "zipint.h"

Go to the source code of this file.

Functions

ZIP_EXTERN zip_file_tzip_fopen_encrypted (zip_t *za, const char *fname, zip_flags_t flags, const char *password)
 

Function Documentation

◆ zip_fopen_encrypted()

ZIP_EXTERN zip_file_t* zip_fopen_encrypted ( zip_t za,
const char *  fname,
zip_flags_t  flags,
const char *  password 
)

Definition at line 39 of file zip_fopen_encrypted.c.

39  {
41 
42  if ((idx = zip_name_locate(za, fname, flags)) < 0)
43  return NULL;
44 
45  return zip_fopen_index_encrypted(za, (zip_uint64_t)idx, flags, password);
46 }
#define NULL
Definition: cris-opc.c:27
ZIP_EXTERN zip_int64_t zip_name_locate(zip_t *_Nonnull, const char *_Nonnull, zip_flags_t)
ZIP_EXTERN zip_file_t *_Nullable zip_fopen_index_encrypted(zip_t *_Nonnull, zip_uint64_t, zip_flags_t, const char *_Nullable)
int idx
Definition: setup.py:197
static struct sockaddr static addrlen static backlog const void static flags void flags
Definition: sfsocketcall.h:123
uint64_t zip_uint64_t
Definition: zipconf.h:39
int64_t zip_int64_t
Definition: zipconf.h:38
zip_t * za
Definition: ziptool.c:79

References flags, create_tags_rz::fname, setup::idx, NULL, za, zip_fopen_index_encrypted(), and zip_name_locate().