File: scado_parse.h

package info (click to toggle)
cado 0.9.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 276 kB
  • sloc: ansic: 1,464; sh: 54; makefile: 16
file content (17 lines) | stat: -rw-r--r-- 603 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef _SCADO_PARSE_H
#define _SCADO_PARSE_H

#include <stdint.h>

/* copy file inpath to file outpath.
	 if path == NULL, add missing HASH digests
	 else if *path == 0, update all HASH digests
	 else update only the digest for path */
void scado_copy_update(char *inpath, char *outpath, char *path);

/* get info for file path.
	 if scado_path_getinfo returns 1 the path is authorized by scado, 
	 pcapset and digest are the permitted set of capabilities and the digest respectively */
int scado_path_getinfo(char *inpath, const char *path, uint64_t *pcapset, char *digest);

#endif // _SCADO_PARSE.H