openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/rsyslog/8.1903.0-r0/rsyslog-8.1903.0/runtime/nsd_ptcp.c
static rsRetVal SetAuthMode(nsd_t __attribute__((unused)) * pNsd, uchar* mode)
{
    DEFiRet;
    if (mode != NULL && strcasecmp((char*)mode, "anon"))
    {
        LogError(0, RS_RET_VALUE_NOT_SUPPORTED,
                 "error: authentication mode '%s' not supported by "
                 "ptcp netstream driver",
                 mode);
        ABORT_FINALIZE(RS_RET_VALUE_NOT_SUPPORTED);
    }

finalize_it:
    RETiRet;
}
/* Set the authentication mode. For us, the following is supported:
 * anon - no certificate checks whatsoever (discouraged, but supported)
 * mode == NULL is valid and defaults to anon
 * Actually, we do not even record the mode right now, because we can
 * always work in anon mode, only. So there is no point in recording
 * something if that's the only choice. What the function does is
 * return an error if something is requested that we can not support.
 * rgerhards, 2008-05-17
 */
Set the authentication mode. For us, the following is supported:
anon - no certificate checks whatsoever (discouraged, but supported)
mode == NULL is valid and defaults to anon
Actually, we do not even record the mode right now, because we can
always work in anon mode, only. So there is no point in recording
something if that's the only choice. What the function does is
return an error if something is requested that we can not support.
Set the authentication mode . For us the following is supported : anon - no certificate checks whatsoever ( discouraged but supported ) mode == NULL is valid and defaults to anon Actually we do not even record the mode right now because we can always work in anon mode only . So there is no point in recording something if that ' s the only choice . What the function does is return an error if something is requested that we can not support .
static rsRetVal SetAuthMode(nsd_t __attribute__((unused)) * pNsd, uchar* mode)
{
    DEFiRet;
    if (mode != NULL && strcasecmp((char*)mode, "anon"))
    {
        LogError(0, RS_RET_VALUE_NOT_SUPPORTED,
                 "error: authentication mode '%s' not supported by "
                 "ptcp netstream driver",
                 mode);
        ABORT_FINALIZE(RS_RET_VALUE_NOT_SUPPORTED);
    }
finalize_it:
    RETiRet;
}
static rsRetVal SetAuthMode ( nsd_t __attribute__ ( ( unused ) ) * pNsd , uchar * mode ) { DEFiRet ; if ( mode != NULL && strcasecmp ( ( char * ) mode , " " ) ) { LogError ( 0 , RS_RET_VALUE_NOT_SUPPORTED , " " " " , mode ) ; ABORT_FINALIZE ( RS_RET_VALUE_NOT_SUPPORTED ) ; } finalize_it : RETiRet ; }
Set the authentication mode.
Set the authentication mode .