Skip to content
pi-c Artifact [c8a9fb47f1]
Login

Artifact [c8a9fb47f1]

Artifact c8a9fb47f18fcb513ab0d372e06b1b05e8d741e568cc0d9b0b88add857e4ae3e:


/* The workspace's verify command (docs/design/verdict.md): the "command"
 * string of WORKSPACE/.pic/verify.json, read only when the workspace is
 * trusted; pic never writes the file:
 *   {"command": "make test"}
 * Core runs it once for each request about to end answered and journals its
 * verdict (pic_store.verify). */
#ifndef PIC_VERIFY_H
#define PIC_VERIFY_H

#include <stdio.h>

/* The command (malloc'd), or NULL: no file, an untrusted workspace, or a
 * file without a command string (said on WARN, when not NULL). */
char *pic_verify_load(const char *workspace, FILE *warn);

#endif