/home/brq/plautrba/devel/src/openscap.git/openscap-0.8.2/src/OVAL/probes/independent/ldap57.c File Reference

ldap57 probe More...

#include <stdbool.h>
#include <ldap.h>
#include "probe-api.h"
#include "common/assume.h"
#include "common/debug_priv.h"

Defines

#define get_string(dst, se_dst, obj, ent_name)

Functions

int probe_main (probe_ctx *ctx, void *mutex)

Detailed Description

ldap57 probe

Author:
"Daniel Kopecek" <dkopecek@redhat.com>

Define Documentation

#define get_string ( dst,
se_dst,
obj,
ent_name   ) 
Value:
do {                                                            \
                SEXP_t *__sval;                                         \
                                                                        \
                __sval = probe_obj_getentval (obj, ent_name, 1);        \
                                                                        \
                if (__sval != NULL) {                                   \
                        (dst) = SEXP_string_cstr (__sval);              \
                                                                        \
                        if ((dst) == NULL) {                            \
                                SEXP_free(__sval);                      \
                                return (PROBE_EINVAL);                  \
                        }                                               \
                                                                        \
                        (se_dst) = __sval;                              \
                } else {                                                \
                        return (PROBE_ENOATTR);                         \
                }                                                       \
        } while (0)

Generated on 30 Mar 2012 for Open SCAP Library by  doxygen 1.6.1