snmp_auth.h File Reference


Detailed Description

SNMP authentication.

 * $Id: snmp_auth.h,v 1.2 2008/02/15 17:13:17 haraldkipp Exp $
 * 

Definition in file snmp_auth.h.

Go to the source code of this file.

Functions

CONST u_charSnmpAuthParse (CONST u_char *, size_t *, u_char *, size_t *, long *)
 Parse header of community string based message.
u_charSnmpAuthBuild (SNMP_SESSION *, u_char *, size_t *, size_t)
 Build header of community string based message.


Function Documentation

CONST u_char* SnmpAuthParse ( CONST u_char data,
size_t *  length,
u_char sidp,
size_t *  slen,
long *  version 
)

Parse header of community string based message.

Retrieves version and community.

Parameters:
data Points to the message.
length Bytes left in message.
sidp Pointer to a buffer that receives the community string.
slen Length of the community string.
version Message version

Definition at line 49 of file snmp_auth.c.

References ASN_CONSTRUCTOR, ASN_SEQUENCE, AsnIntegerParse(), AsnOctetStringParse(), AsnSequenceParse(), and SNMP_VERSION_1.

Referenced by SnmpAgentProcessRequest().

u_char* SnmpAuthBuild ( SNMP_SESSION ,
u_char ,
size_t *  ,
size_t   
)


© 2000-2007 by egnite Software GmbH - visit http://www.ethernut.de/