|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T r
Length: 2192 (0x890) Types: TextFile Names: »rosaperror.c«
└─⟦2d1937cfd⟧ Bits:30007241 EUUGD22: P.P 5.0 └─⟦35176feda⟧ »EurOpenD22/isode/isode-6.tar.Z« └─⟦de7628f85⟧ └─⟦this⟧ »isode-6.0/rosap/rosaperror.c«
/* rosaperror.c - return RoSAP error code in string form */ #ifndef lint static char *rcsid = "$Header: /f/osi/rosap/RCS/rosaperror.c,v 7.0 89/11/23 22:21:27 mrose Rel $"; #endif /* * $Header: /f/osi/rosap/RCS/rosaperror.c,v 7.0 89/11/23 22:21:27 mrose Rel $ * * Based on an TCP-based implementation by George Michaelson of University * College London. * * * $Log: rosaperror.c,v $ * Revision 7.0 89/11/23 22:21:27 mrose * Release 6.0 * */ /* * NOTICE * * Acquisition, use, and distribution of this module and related * materials are subject to the restrictions of a license agreement. * Consult the Preface in the User's Manual for the full terms of * this agreement. * */ /* LINTLIBRARY */ #include <stdio.h> #include "rosap.h" /* \f */ static char *reject_err0[] = { "Authentication failure", "Busy", "Unrecognized APDU", "Mistyped APDU", "Badly structured APDU", "Duplicate invocation", "Unrecognized operation", "Mistyped argument", "Resource limitation", "Initiator releasing", "Unrecognized linked ID", "Linked response unexpected", "Unexpected child operation", "Unrecognized invocation", "Result response unexpected", "Mistyped result", "Unrecognized invocation", "Error response unexpected", "Unrecognized error", "Unexpected error", "Mistyped parameter", "Address unknown", "Connect request refused on this network connection", "Session disconnect", "Protocol error", "Congestion at RoSAP", "Remote system problem", "Association done via async handler", "Peer aborted association", "RTS disconnect", "Presentation disconnect", "ACS disconnect", "Invalid parameter", "Invalid operation", "Timer expired", "Indications waiting", "APDU not transferred", "Stub interrupted" }; static int reject_err0_cnt = sizeof reject_err0 / sizeof reject_err0[0]; /* \f */ char *RoErrString (code) register int code; { static char buffer[BUFSIZ]; if (code < reject_err0_cnt) return reject_err0[code]; (void) sprintf (buffer, "unknown error code 0x%x", code); return buffer; }