Annotation of 43BSDReno/contrib/isode-beta/rosap/rosaperror.c, revision 1.1

1.1     ! root        1: /* rosaperror.c - return RoSAP error code in string form */
        !             2: 
        !             3: #ifndef        lint
        !             4: static char *rcsid = "$Header: /f/osi/rosap/RCS/rosaperror.c,v 6.0 89/03/18 23:42:24 mrose Rel $";
        !             5: #endif
        !             6: 
        !             7: /* 
        !             8:  * $Header: /f/osi/rosap/RCS/rosaperror.c,v 6.0 89/03/18 23:42:24 mrose Rel $
        !             9:  *
        !            10:  * Based on an TCP-based implementation by George Michaelson of University
        !            11:  * College London.
        !            12:  *
        !            13:  *
        !            14:  * $Log:       rosaperror.c,v $
        !            15:  * Revision 6.0  89/03/18  23:42:24  mrose
        !            16:  * Release 5.0
        !            17:  * 
        !            18:  */
        !            19: 
        !            20: /*
        !            21:  *                               NOTICE
        !            22:  *
        !            23:  *    Acquisition, use, and distribution of this module and related
        !            24:  *    materials are subject to the restrictions of a license agreement.
        !            25:  *    Consult the Preface in the User's Manual for the full terms of
        !            26:  *    this agreement.
        !            27:  *
        !            28:  */
        !            29: 
        !            30: 
        !            31: /* LINTLIBRARY */
        !            32: 
        !            33: #include <stdio.h>
        !            34: #include "rosap.h"
        !            35: 
        !            36: /*  */
        !            37: 
        !            38: static char *reject_err0[] = {
        !            39:     "Authentication failure",
        !            40:     "Busy",
        !            41:     "Unrecognized APDU",
        !            42:     "Mistyped APDU",
        !            43:     "Badly structured APDU",
        !            44:     "Duplicate invocation",
        !            45:     "Unrecognized operation",
        !            46:     "Mistyped argument",
        !            47:     "Resource limitation",
        !            48:     "Initiator releasing",
        !            49:     "Unrecognized linked ID",
        !            50:     "Linked response unexpected",
        !            51:     "Unexpected child operation",
        !            52:     "Unrecognized invocation",
        !            53:     "Result response unexpected",
        !            54:     "Mistyped result",
        !            55:     "Unrecognized invocation",
        !            56:     "Error response unexpected",
        !            57:     "Unrecognized error",
        !            58:     "Unexpected error",
        !            59:     "Mistyped parameter",
        !            60:     "Address unknown",
        !            61:     "Connect request refused on this network connection",
        !            62:     "Session disconnect",
        !            63:     "Protocol error",
        !            64:     "Congestion at RoSAP",
        !            65:     "Remote system problem",
        !            66:     "Association done via async handler",
        !            67:     "Peer aborted association",
        !            68:     "RTS disconnect",
        !            69:     "Presentation disconnect",
        !            70:     "ACS disconnect",
        !            71:     "Invalid parameter",
        !            72:     "Invalid operation",
        !            73:     "Timer expired",
        !            74:     "Indications waiting",
        !            75:     "APDU not transferred",
        !            76:     "Stub interrupted"
        !            77: };
        !            78: 
        !            79: static int reject_err0_cnt = sizeof reject_err0 / sizeof reject_err0[0];
        !            80: 
        !            81: /*  */
        !            82: 
        !            83: char   *RoErrString (code)
        !            84: register int code;
        !            85: {
        !            86:     static char buffer[BUFSIZ];
        !            87: 
        !            88:     if (code < reject_err0_cnt)
        !            89:        return reject_err0[code];
        !            90: 
        !            91:     (void) sprintf (buffer, "unknown error code 0x%x", code);
        !            92:     return buffer;
        !            93: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.