This file is indexed.

/usr/include/ccnet/valid-check.h is in libccnet-dev 6.1.5-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */

#ifndef VALID_CHECK_H
#define VALID_CHECK_H

#include <string.h>

inline static gboolean user_id_valid(const char *id)
{
    if (!id || strlen(id) != 40)
        return FALSE;
    return TRUE;
}

inline static gboolean peer_id_valid(const char *id)
{
    if (!id || strlen(id) != 40)
        return FALSE;
    return TRUE;
}

gboolean is_uuid_valid (const char *uuid_str);

inline static gboolean group_id_valid(const char *id)
{
    return is_uuid_valid(id);
}

#endif