Changeset c9165ef0 in rtems for cpukit/librpc


Ignore:
Timestamp:
Jan 7, 2005, 11:22:50 AM (15 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
dc7f3476
Parents:
5f6618e7
Message:

2005-01-07 Ralf Corsepius <ralf.corsepius@…>

  • librpc/include/rpc/xdr.h: Remove questionable comments.
  • librpc/include/rpc/auth.h: Remove P, ansi-fy.
  • librpc/src/rpc/auth_none.c: Reflect changes above. Partial update from FreeBSD.
Location:
cpukit/librpc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpukit/librpc/include/rpc/auth.h

    r5f6618e7 rc9165ef0  
    7979typedef union des_block des_block;
    8080__BEGIN_DECLS
    81 extern bool_t xdr_des_block __P((XDR *, des_block *));
     81extern bool_t xdr_des_block (XDR *, des_block *);
    8282__END_DECLS
    8383
     
    9191};
    9292__BEGIN_DECLS
    93 bool_t xdr_opaque_auth __P((XDR *xdrs, struct opaque_auth *ap));
     93bool_t xdr_opaque_auth (XDR *xdrs, struct opaque_auth *ap);
    9494__END_DECLS
    9595
     
    103103        union   des_block       ah_key;
    104104        struct auth_ops {
    105                 void    (*ah_nextverf) __P((struct __rpc_auth *));
     105                void    (*ah_nextverf) (struct __rpc_auth *);
    106106                /* nextverf & serialize */
    107                 int     (*ah_marshal) __P((struct __rpc_auth *, XDR *));
     107                int     (*ah_marshal) (struct __rpc_auth *, XDR *);
    108108                /* validate verifier */
    109                 int     (*ah_validate) __P((struct __rpc_auth *,
    110                                 struct opaque_auth *));
     109                int     (*ah_validate) (struct __rpc_auth *,
     110                                struct opaque_auth *);
    111111                /* refresh credentials */
    112                 int     (*ah_refresh) __P((struct __rpc_auth *));
     112                int     (*ah_refresh) (struct __rpc_auth *);
    113113                /* destroy this structure */
    114                 void    (*ah_destroy) __P((struct __rpc_auth *));
     114                void    (*ah_destroy) (struct __rpc_auth *);
    115115        } *ah_ops;
    116116        caddr_t ah_private;
     
    169169__BEGIN_DECLS
    170170struct sockaddr_in;
    171 extern AUTH *authunix_create            __P((char *, int, int, int, int *));
    172 extern AUTH *authunix_create_default    __P((void));
    173 extern AUTH *authnone_create            __P((void));
     171extern AUTH *authunix_create            (char *, int, int, int, int *);
     172extern AUTH *authunix_create_default    (void);
     173extern AUTH *authnone_create            (void);
    174174__END_DECLS
    175175
     
    187187 */
    188188__BEGIN_DECLS
    189 extern AUTH *authdes_create __P(( char *, u_int, struct sockaddr *, des_block * ));
     189extern AUTH *authdes_create ( char *, u_int, struct sockaddr *, des_block * );
    190190#ifdef NOTYET
    191191/*
     
    195195 * code prototypes this routine internally.
    196196 */
    197 extern AUTH *authdes_pk_create __P(( char *, netobj *, u_int,
     197extern AUTH *authdes_pk_create ( char *, netobj *, u_int,
    198198                                     struct sockaddr *, des_block *,
    199                                      nis_server * ));
     199                                     nis_server * );
    200200#endif
    201201__END_DECLS
     
    205205 */
    206206__BEGIN_DECLS
    207 extern int netname2user __P(( char *, uid_t *, gid_t *, int *, gid_t *));
    208 extern int netname2host __P(( char *, char *, int ));
    209 extern int getnetname __P(( char * ));
    210 extern int user2netname __P(( char *, uid_t, char * ));
    211 extern int host2netname __P(( char *, char *, char * ));
    212 extern void passwd2des __P(( char *, char * ));
     207extern int netname2user ( char *, uid_t *, gid_t *, int *, gid_t *);
     208extern int netname2host ( char *, char *, int );
     209extern int getnetname ( char * );
     210extern int user2netname ( char *, uid_t, char * );
     211extern int host2netname ( char *, char *, char * );
     212extern void passwd2des ( char *, char * );
    213213__END_DECLS
    214214
     
    230230
    231231__BEGIN_DECLS
    232 extern int key_decryptsession __P(( const char *, des_block * ));
    233 extern int key_decryptsession_pk __P(( char *, netobj *, des_block * ));
    234 extern int key_encryptsession __P(( const char *, des_block * ));
    235 extern int key_encryptsession_pk __P(( char *, netobj *, des_block * ));
    236 extern int key_gendes __P(( des_block * ));
    237 extern int key_setsecret __P(( const char * ));
    238 extern int key_secretkey_is_set __P(( void ));
    239 extern int key_setnet __P(( struct netstarg * ));
    240 extern int key_get_conv __P(( char *, des_block * ));
     232extern int key_decryptsession ( const char *, des_block * );
     233extern int key_decryptsession_pk ( char *, netobj *, des_block * );
     234extern int key_encryptsession ( const char *, des_block * );
     235extern int key_encryptsession_pk ( char *, netobj *, des_block * );
     236extern int key_gendes ( des_block * );
     237extern int key_setsecret ( const char * );
     238extern int key_secretkey_is_set ( void );
     239extern int key_setnet ( struct netstarg * );
     240extern int key_get_conv ( char *, des_block * );
    241241__END_DECLS
    242242
     
    245245 */
    246246__BEGIN_DECLS
    247 extern int getpublickey __P(( char *, char * ));
    248 extern int getpublicandprivatekey __P(( char *, char * ));
    249 extern int getsecretkey __P(( char *, char *, char * ));
     247extern int getpublickey ( char *, char * );
     248extern int getpublicandprivatekey ( char *, char * );
     249extern int getsecretkey ( char *, char *, char * );
    250250__END_DECLS
    251251
  • cpukit/librpc/include/rpc/xdr.h

    r5f6618e7 rc9165ef0  
    130130 * allocate dynamic storage of the appropriate size and return it.
    131131 */
    132 #if 0 /* RTEMS has no kernel/user distinction */
    133 typedef bool_t (*xdrproc_t) (XDR *, void *, u_int);
    134 #else
    135 /*
    136  * XXX can't actually prototype it, because some take two args!!!
    137  */
    138132typedef bool_t (*xdrproc_t) (XDR *, void *, ...);
    139 #endif
    140133
    141134/*
  • cpukit/librpc/src/rpc/auth_none.c

    r5f6618e7 rc9165ef0  
    4646#include <rpc/xdr.h>
    4747#include <rpc/auth.h>
    48 #define MAX_MARSHEL_SIZE 20
     48#define MAX_MARSHAL_SIZE 20
    4949
    5050/*
    5151 * Authenticator operations routines
    5252 */
    53 static void     authnone_verf();
    54 static void     authnone_destroy();
    55 static bool_t   authnone_marshal();
    56 static bool_t   authnone_validate();
    57 static bool_t   authnone_refresh();
     53static void     authnone_verf(AUTH*);
     54static void     authnone_destroy(AUTH*);
     55static bool_t   authnone_marshal(AUTH*, XDR*);
     56static bool_t   authnone_validate(AUTH*, struct opaque_auth *);
     57static bool_t   authnone_refresh(AUTH*);
    5858
    5959static struct auth_ops ops = {
     
    6767static struct authnone_private {
    6868        AUTH    no_client;
    69         char    marshalled_client[MAX_MARSHEL_SIZE];
     69        char    marshalled_client[MAX_MARSHAL_SIZE];
    7070        u_int   mcnt;
    7171} *authnone_private;
     
    7474authnone_create()
    7575{
    76         register struct authnone_private *ap = authnone_private;
     76        struct authnone_private *ap = authnone_private;
    7777        XDR xdr_stream;
    78         register XDR *xdrs;
     78        XDR *xdrs;
    7979
    8080        if (ap == 0) {
     
    8888                ap->no_client.ah_ops = &ops;
    8989                xdrs = &xdr_stream;
    90                 xdrmem_create(xdrs, ap->marshalled_client, (u_int)MAX_MARSHEL_SIZE,
     90                xdrmem_create(xdrs, ap->marshalled_client, (u_int)MAX_MARSHAL_SIZE,
    9191                    XDR_ENCODE);
    9292                (void)xdr_opaque_auth(xdrs, &ap->no_client.ah_cred);
     
    100100/*ARGSUSED*/
    101101static bool_t
    102 authnone_marshal(client, xdrs)
    103         AUTH *client;
    104         XDR *xdrs;
     102authnone_marshal(AUTH *client, XDR *xdrs)
    105103{
    106         register struct authnone_private *ap = authnone_private;
     104        struct authnone_private *ap = authnone_private;
    107105
    108106        if (ap == 0)
     
    113111
    114112static void
    115 authnone_verf()
     113authnone_verf(AUTH *client)
    116114{
    117115}
    118116
    119117static bool_t
    120 authnone_validate()
     118authnone_validate(AUTH *client, struct opaque_auth *opaque)
    121119{
    122120
     
    125123
    126124static bool_t
    127 authnone_refresh()
     125authnone_refresh(AUTH *client)
    128126{
    129127
     
    132130
    133131static void
    134 authnone_destroy()
     132authnone_destroy(AUTH *client)
    135133{
    136134}
Note: See TracChangeset for help on using the changeset viewer.