• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/contrib/bsnmp/lib/

Lines Matching refs:ASN_ERR_OK

78 	if (asn_get_sequence(b, &len) != ASN_ERR_OK) {
89 if (asn_get_objid(b, &binding->var) != ASN_ERR_OK) {
93 if (asn_get_header(b, &type, &len) != ASN_ERR_OK) {
173 if ((err = asn_skip(b, len)) == ASN_ERR_OK)
195 * components can be parsed it returns either ASN_ERR_OK or the first
202 if (asn_get_objid(b, &pdu->enterprise) != ASN_ERR_OK) {
206 if (asn_get_ipaddress(b, pdu->agent_addr) != ASN_ERR_OK) {
210 if (asn_get_integer(b, &pdu->generic_trap) != ASN_ERR_OK) {
214 if (asn_get_integer(b, &pdu->specific_trap) != ASN_ERR_OK) {
218 if (asn_get_timeticks(b, &pdu->time_stamp) != ASN_ERR_OK) {
223 if (asn_get_integer(b, &pdu->request_id) != ASN_ERR_OK) {
227 if (asn_get_integer(b, &pdu->error_status) != ASN_ERR_OK) {
231 if (asn_get_integer(b, &pdu->error_index) != ASN_ERR_OK) {
237 if (asn_get_sequence(b, lenp) != ASN_ERR_OK) {
242 return (ASN_ERR_OK);
259 err = ASN_ERR_OK;
269 if (err1 != ASN_ERR_OK && err == ASN_ERR_OK) {
295 if (asn_get_octetstring(b, buf, &len) != ASN_ERR_OK) {
301 if (asn_get_sequence(&tb, &octs_len) != ASN_ERR_OK) {
308 &octs_len) != ASN_ERR_OK) {
314 if (asn_get_integer(&tb, &pdu->engine.engine_boots) != ASN_ERR_OK) {
319 if (asn_get_integer(&tb, &pdu->engine.engine_time) != ASN_ERR_OK) {
326 != ASN_ERR_OK) {
334 ASN_ERR_OK || ((pdu->flags & SNMP_MSG_AUTH_FLAG) != 0 &&
342 ASN_ERR_OK ||((pdu->flags & SNMP_MSG_PRIV_FLAG) != 0 &&
353 return (ASN_ERR_OK);
369 &sptr) != ASN_ERR_OK)
373 pdu->engine.engine_len) != ASN_ERR_OK)
376 if (asn_put_integer(&tb, pdu->engine.engine_boots) != ASN_ERR_OK)
379 if (asn_put_integer(&tb, pdu->engine.engine_time) != ASN_ERR_OK)
383 strlen(pdu->user.sec_name)) != ASN_ERR_OK)
389 sizeof(pdu->msg_digest)) != ASN_ERR_OK)
393 != ASN_ERR_OK)
399 sizeof(pdu->msg_salt)) != ASN_ERR_OK)
403 != ASN_ERR_OK)
407 if (asn_commit_header(&tb, sptr, &moved) != ASN_ERR_OK)
413 if (asn_put_octetstring(b, buf, sizeof(buf) - tb.asn_len) != ASN_ERR_OK)
418 ASN_TYPE_OCTETSTRING, &pdu->encrypted_ptr) != ASN_ERR_OK)
473 if (asn_get_sequence(b, &len) != ASN_ERR_OK) {
486 if (asn_get_integer(b, &version) != ASN_ERR_OK) {
504 if (asn_get_sequence(b, &len) != ASN_ERR_OK) {
509 if (asn_get_integer(b, &pdu->identifier) != ASN_ERR_OK) {
515 != ASN_ERR_OK) {
522 &octs_len) != ASN_ERR_OK) {
527 if (asn_get_integer(b, &pdu->security_model) != ASN_ERR_OK) {
535 if (parse_secparams(b, pdu) != ASN_ERR_OK)
540 &octs_len) != ASN_ERR_OK) {
558 if (asn_get_sequence(b, &len) != ASN_ERR_OK) {
565 &len) != ASN_ERR_OK) {
573 &len) != ASN_ERR_OK) {
580 if (asn_get_header(b, &type, &len) != ASN_ERR_OK) {
656 &pdu->scoped_len) != ASN_ERR_OK || type != ASN_TYPE_OCTETSTRING)) {
744 &pdu->outer_ptr) != ASN_ERR_OK)
755 if (err != ASN_ERR_OK)
760 ASN_TYPE_CONSTRUCTED), &v3_hdr_ptr) != ASN_ERR_OK)
763 if (asn_put_integer(b, pdu->identifier) != ASN_ERR_OK)
766 if (asn_put_integer(b, pdu->engine.max_msg_size) != ASN_ERR_OK)
776 != ASN_ERR_OK)
779 if (asn_put_integer(b, pdu->security_model) != ASN_ERR_OK)
782 if (asn_commit_header(b, v3_hdr_ptr, NULL) != ASN_ERR_OK)
793 ASN_TYPE_CONSTRUCTED), &pdu->scoped_ptr) != ASN_ERR_OK)
797 pdu->context_engine_len) != ASN_ERR_OK)
801 strlen(pdu->context_name)) != ASN_ERR_OK)
805 strlen(pdu->community)) != ASN_ERR_OK)
810 pdu->type), &pdu->pdu_ptr) != ASN_ERR_OK)
815 asn_put_objid(b, &pdu->enterprise) != ASN_ERR_OK ||
816 asn_put_ipaddress(b, pdu->agent_addr) != ASN_ERR_OK ||
817 asn_put_integer(b, pdu->generic_trap) != ASN_ERR_OK ||
818 asn_put_integer(b, pdu->specific_trap) != ASN_ERR_OK ||
819 asn_put_timeticks(b, pdu->time_stamp) != ASN_ERR_OK)
828 if (asn_put_integer(b, pdu->request_id) != ASN_ERR_OK ||
829 asn_put_integer(b, pdu->error_status) != ASN_ERR_OK ||
830 asn_put_integer(b, pdu->error_index) != ASN_ERR_OK)
835 &pdu->vars_ptr) != ASN_ERR_OK)
848 if (asn_pad(b, padlen) != ASN_ERR_OK)
853 return (ASN_ERR_OK);
862 if (asn_commit_header(b, pdu->vars_ptr, NULL) != ASN_ERR_OK ||
863 asn_commit_header(b, pdu->pdu_ptr, NULL) != ASN_ERR_OK)
867 if (asn_commit_header(b, pdu->scoped_ptr, NULL) != ASN_ERR_OK)
871 if (snmp_pdu_fix_padd(b, pdu) != ASN_ERR_OK)
881 asn_commit_header(b, pdu->encrypted_ptr, NULL) != ASN_ERR_OK)
885 if (asn_commit_header(b, pdu->outer_ptr, &moved) != ASN_ERR_OK)
916 ASN_TYPE_CONSTRUCTED), &ptr)) != ASN_ERR_OK) {
921 if ((err = asn_put_objid(b, &binding->var)) != ASN_ERR_OK) {
978 if (err != ASN_ERR_OK) {
984 if (err != ASN_ERR_OK) {
989 return (ASN_ERR_OK);
1005 != ASN_ERR_OK)