]> git.sur5r.net Git - openldap/blob - libraries/libldap/ldap-int.h
First cut SASL "interactive" and "quiet" modes (default is "automatic")
[openldap] / libraries / libldap / ldap-int.h
1 /*  ldap-int.h - defines & prototypes internal to the LDAP library */
2 /* $OpenLDAP$ */
3 /*
4  * Copyright 1998-2000 The OpenLDAP Foundation, All Rights Reserved.
5  * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
6  */
7 /*  Portions
8  *  Copyright (c) 1995 Regents of the University of Michigan.
9  *  All rights reserved.
10  */
11
12 #ifndef _LDAP_INT_H
13 #define _LDAP_INT_H 1
14
15 #ifdef LDAP_R_COMPILE
16 #define LDAP_THREAD_SAFE 1
17 #endif
18
19 #include "../liblber/lber-int.h"
20
21 #ifdef HAVE_CYRUS_SASL
22         /* the need for this should be removed */
23 #include <sasl.h>
24 #endif
25
26 /* 
27  * Support needed if the library is running in the kernel
28  */
29 #if LDAP_INT_IN_KERNEL
30         /* 
31          * Platform specific function to return a pointer to the
32          * process-specific global options. 
33          *
34          * This function should perform the following functions:
35          *  Allocate and initialize a global options struct on a per process basis
36          *  Use callers process identifier to return its global options struct
37          *  Note: Deallocate structure when the process exits
38          */
39 #       define LDAP_INT_GLOBAL_OPT() ldap_int_global_opt()
40    struct ldapoptions *ldap_int_global_opt(void);
41 #else
42 #       define LDAP_INT_GLOBAL_OPT() (&ldap_int_global_options)
43 #endif
44
45 #define ldap_debug      ((LDAP_INT_GLOBAL_OPT())->ldo_debug)
46
47 #include "ldap_log.h"
48
49 #undef Debug
50 #define Debug( level, fmt, arg1, arg2, arg3 ) \
51         ldap_log_printf( NULL, (level), (fmt), (arg1), (arg2), (arg3) )
52
53 #include "ldap.h"
54
55 #include "ldap_pvt.h"
56
57 LDAP_BEGIN_DECL
58
59 #define LDAP_URL_PREFIX         "ldap://"
60 #define LDAP_URL_PREFIX_LEN     (sizeof(LDAP_URL_PREFIX)-1)
61 #define LDAPS_URL_PREFIX                "ldaps://"
62 #define LDAPS_URL_PREFIX_LEN    (sizeof(LDAPS_URL_PREFIX)-1)
63 #define LDAPI_URL_PREFIX        "ldapi://"
64 #define LDAPI_URL_PREFIX_LEN    (sizeof(LDAPI_URL_PREFIX)-1)
65 #define LDAP_URL_URLCOLON               "URL:"
66 #define LDAP_URL_URLCOLON_LEN   (sizeof(LDAP_URL_URLCOLON)-1)
67
68 #define CLDAP_URL_PREFIX         "cldap://"
69 #define CLDAP_URL_PREFIX_LEN     (sizeof(CLDAP_URL_PREFIX)-1)
70
71 #define LDAP_REF_STR            "Referral:\n"
72 #define LDAP_REF_STR_LEN        (sizeof(LDAP_REF_STR)-1)
73 #define LDAP_LDAP_REF_STR       LDAP_URL_PREFIX
74 #define LDAP_LDAP_REF_STR_LEN   LDAP_URL_PREFIX_LEN
75
76 #define LDAP_DEFAULT_REFHOPLIMIT 5
77
78 #define LDAP_BOOL_REFERRALS             0
79 #define LDAP_BOOL_RESTART               1
80 #define LDAP_BOOL_TLS                   3
81
82 #define LDAP_BOOLEANS   unsigned long
83 #define LDAP_BOOL(n)    (1 << (n))
84 #define LDAP_BOOL_GET(lo, bool) \
85         ((lo)->ldo_booleans & LDAP_BOOL(bool) ? -1 : 0)
86 #define LDAP_BOOL_SET(lo, bool) ((lo)->ldo_booleans |= LDAP_BOOL(bool))
87 #define LDAP_BOOL_CLR(lo, bool) ((lo)->ldo_booleans &= ~LDAP_BOOL(bool))
88 #define LDAP_BOOL_ZERO(lo) ((lo)->ldo_booleans = 0)
89
90 /*
91  * This structure represents both ldap messages and ldap responses.
92  * These are really the same, except in the case of search responses,
93  * where a response has multiple messages.
94  */
95
96 struct ldapmsg {
97         ber_int_t               lm_msgid;       /* the message id */
98         ber_tag_t               lm_msgtype;     /* the message type */
99         BerElement      *lm_ber;        /* the ber encoded message contents */
100         struct ldapmsg  *lm_chain;      /* for search - next msg in the resp */
101         struct ldapmsg  *lm_next;       /* next response */
102         time_t  lm_time;        /* used to maintain cache */
103 };
104
105 /*
106  * structure representing get/set'able options
107  * which have global defaults.
108  */
109 struct ldapoptions {
110         short ldo_valid;
111 #define LDAP_UNINITIALIZED      0x0
112 #define LDAP_INITIALIZED        0x1
113 #define LDAP_VALID_SESSION      0x2
114
115         int             ldo_debug;
116         /* per API call timeout */
117         struct timeval          *ldo_tm_api;
118         struct timeval          *ldo_tm_net;
119
120         ber_int_t               ldo_version;
121         ber_int_t               ldo_deref;
122         ber_int_t               ldo_timelimit;
123         ber_int_t               ldo_sizelimit;
124
125         LDAPURLDesc *ldo_defludp;
126         int             ldo_defport;
127         char*   ldo_defbase;
128         char*   ldo_defbinddn;  /* bind dn */
129
130 #ifdef HAVE_CYRUS_SASL
131         char*   ldo_def_sasl_mech;              /* SASL Mechanism(s) */
132         char*   ldo_def_sasl_realm;             /* SASL realm */
133         char*   ldo_def_sasl_authcid;   /* SASL authentication identity */
134         char*   ldo_def_sasl_authzid;   /* SASL authorization identity */
135
136         /* SASL Security Properties */
137         struct sasl_security_properties ldo_sasl_secprops;
138 #endif
139
140 #ifdef LDAP_CONNECTIONLESS
141         int             ldo_cldaptries; /* connectionless search retry count */
142         int             ldo_cldaptimeout;/* time between retries */
143 #endif
144
145         int             ldo_refhoplimit;        /* limit on referral nesting */
146
147         /* LDAPv3 server and client controls */
148         LDAPControl     **ldo_sctrls;
149         LDAPControl **ldo_cctrls;
150
151         /* LDAP rebind callback function */
152         LDAP_REBIND_PROC                *ldo_rebindproc;
153
154 #ifdef HAVE_TLS
155         /* tls context */
156         void            *ldo_tls_ctx;
157         int             ldo_tls_mode;
158 #endif
159         LDAP_BOOLEANS ldo_booleans;     /* boolean options */
160 };
161
162
163 /*
164  * structure for tracking LDAP server host, ports, DNs, etc.
165  */
166 typedef struct ldap_server {
167         char                    *lsrv_host;
168         char                    *lsrv_dn;       /* if NULL, use default */
169         int                     lsrv_port;
170         struct ldap_server      *lsrv_next;
171 } LDAPServer;
172
173
174 /*
175  * structure for representing an LDAP server connection
176  */
177 typedef struct ldap_conn {
178         Sockbuf         *lconn_sb;
179         void            *lconn_sasl_ctx;
180         int                     lconn_refcnt;
181         time_t          lconn_lastused; /* time */
182         int                     lconn_rebind_inprogress;        /* set if rebind in progress */
183         char            ***lconn_rebind_queue;          /* used if rebind in progress */
184         int                     lconn_status;
185 #define LDAP_CONNST_NEEDSOCKET          1
186 #define LDAP_CONNST_CONNECTING          2
187 #define LDAP_CONNST_CONNECTED           3
188         LDAPURLDesc             *lconn_server;
189         char                    *lconn_krbinstance;
190         struct ldap_conn        *lconn_next;
191         BerElement              *lconn_ber;/* ber receiving on this conn. */
192 } LDAPConn;
193
194
195 /*
196  * structure used to track outstanding requests
197  */
198 typedef struct ldapreq {
199         ber_int_t               lr_msgid;       /* the message id */
200         int             lr_status;      /* status of request */
201 #define LDAP_REQST_COMPLETED    0
202 #define LDAP_REQST_INPROGRESS   1
203 #define LDAP_REQST_CHASINGREFS  2
204 #define LDAP_REQST_NOTCONNECTED 3
205 #define LDAP_REQST_WRITING      4
206         int             lr_outrefcnt;   /* count of outstanding referrals */
207         ber_int_t               lr_origid;      /* original request's message id */
208         int             lr_parentcnt;   /* count of parent requests */
209         ber_tag_t               lr_res_msgtype; /* result message type */
210         ber_int_t               lr_res_errno;   /* result LDAP errno */
211         char            *lr_res_error;  /* result error string */
212         char            *lr_res_matched;/* result matched DN string */
213         BerElement      *lr_ber;        /* ber encoded request contents */
214         LDAPConn        *lr_conn;       /* connection used to send request */
215         struct ldapreq  *lr_parent;     /* request that spawned this referral */
216         struct ldapreq  *lr_refnext;    /* next referral spawned */
217         struct ldapreq  *lr_prev;       /* previous request */
218         struct ldapreq  *lr_next;       /* next request */
219 } LDAPRequest;
220
221 /*
222  * structure for client cache
223  */
224 #define LDAP_CACHE_BUCKETS      31      /* cache hash table size */
225 typedef struct ldapcache {
226         LDAPMessage     *lc_buckets[LDAP_CACHE_BUCKETS];/* hash table */
227         LDAPMessage     *lc_requests;                   /* unfulfilled reqs */
228         long            lc_timeout;                     /* request timeout */
229         ber_len_t               lc_maxmem;                      /* memory to use */
230         ber_len_t               lc_memused;                     /* memory in use */
231         int             lc_enabled;                     /* enabled? */
232         unsigned long   lc_options;                     /* options */
233 #define LDAP_CACHE_OPT_CACHENOERRS      0x00000001
234 #define LDAP_CACHE_OPT_CACHEALLERRS     0x00000002
235 }  LDAPCache;
236
237 /*
238  * structure containing referral request info for rebind procedure
239  */
240 typedef struct ldapreqinfo {
241         ber_len_t       ri_msgid;
242         int                     ri_request;
243         char            *ri_url;
244 } LDAPreqinfo;
245
246 /*
247  * handy macro for checking if handle is connectionless
248  */
249
250 #define LDAP_IS_CLDAP(ld) ((ld)->ld_cldapnaddr>0)
251
252 /*
253  * structure representing an ldap connection
254  */
255
256 struct ldap {
257         Sockbuf         *ld_sb;         /* socket descriptor & buffer */
258
259         struct ldapoptions ld_options;
260
261 #define ld_valid                ld_options.ldo_valid
262 #define ld_debug                ld_options.ldo_debug
263
264 #define ld_deref                ld_options.ldo_deref
265 #define ld_timelimit    ld_options.ldo_timelimit
266 #define ld_sizelimit    ld_options.ldo_sizelimit
267
268 #define ld_defbinddn    ld_options.ldo_defbinddn
269 #define ld_defbase              ld_options.ldo_defbase
270 #define ld_defhost              ld_options.ldo_defhost
271 #define ld_defport              ld_options.ldo_defport
272
273 #define ld_cldaptries   ld_options.ldo_cldaptries
274 #define ld_cldaptimeout ld_options.ldo_cldaptimeout
275 #define ld_refhoplimit  ld_options.ldo_refhoplimit
276
277 #define ld_sctrls               ld_options.ldo_sctrls
278 #define ld_cctrls               ld_options.ldo_cctrls
279 #define ld_rebindproc   ld_options.ldo_rebindproc
280
281 #define ld_version              ld_options.ldo_version
282
283         char    *ld_host;
284         int             ld_port;
285
286         unsigned short  ld_lberoptions;
287
288         LDAPFiltDesc    *ld_filtd;      /* from getfilter for ufn searches */
289         char            *ld_ufnprefix;  /* for incomplete ufn's */
290
291         ber_int_t       ld_errno;
292         char    *ld_error;
293         char    *ld_matched;
294         ber_len_t               ld_msgid;
295
296         /* do not mess with these */
297         LDAPRequest     *ld_requests;   /* list of outstanding requests */
298         LDAPMessage     *ld_responses;  /* list of outstanding responses */
299
300         ber_int_t               *ld_abandoned;  /* array of abandoned requests */
301
302         LDAPCache       *ld_cache;      /* non-null if cache is initialized */
303         /* stuff used by connectionless searches. */
304
305         char            *ld_cldapdn;    /* DN used in connectionless search */
306         int             ld_cldapnaddr; /* number of addresses */
307         void            **ld_cldapaddrs;/* addresses to send request to */
308
309         /* do not mess with the rest though */
310
311         LDAPConn        *ld_defconn;    /* default connection */
312         LDAPConn        *ld_conns;      /* list of server connections */
313         void            *ld_selectinfo; /* platform specifics for select */
314 };
315 #define LDAP_VALID(ld)  ( (ld)->ld_valid == LDAP_VALID_SESSION )
316
317 #if defined(HAVE_RES_QUERY) && defined(LDAP_R_COMPILE)
318 #include <ldap_pvt_thread.h>
319 LDAP_V ( ldap_pvt_thread_mutex_t ) ldap_int_resolv_mutex;
320 #endif /* HAVE_RES_QUERY && LDAP_R_COMPILE */
321
322 /*
323  * in init.c
324  */
325
326 LDAP_V ( struct ldapoptions ) ldap_int_global_options;
327
328 LDAP_F ( void ) ldap_int_initialize LDAP_P((struct ldapoptions *, int *));
329 LDAP_F ( void ) ldap_int_initialize_global_options LDAP_P((
330         struct ldapoptions *, int *));
331
332 /* memory.c */
333         /* simple macros to realloc for now */
334 #define LDAP_INT_MALLOC(s)              (LBER_MALLOC((s)))
335 #define LDAP_INT_CALLOC(n,s)    (LBER_CALLOC((n),(s)))
336 #define LDAP_INT_REALLOC(p,s)   (LBER_REALLOC((p),(s)))
337 #define LDAP_INT_FREE(p)                (LBER_FREE((p)))
338 #define LDAP_INT_VFREE(v)               (LBER_VFREE((void **)(v)))
339 #define LDAP_INT_STRDUP(s)              (LBER_STRDUP((s)))
340
341 #define LDAP_MALLOC(s)          (LBER_MALLOC((s)))
342 #define LDAP_CALLOC(n,s)        (LBER_CALLOC((n),(s)))
343 #define LDAP_REALLOC(p,s)       (LBER_REALLOC((p),(s)))
344 #define LDAP_FREE(p)            (LBER_FREE((p)))
345 #define LDAP_VFREE(v)           (LBER_VFREE((void **)(v)))
346 #define LDAP_STRDUP(s)          (LBER_STRDUP((s)))
347
348 /*
349  * in unit-int.c
350  */
351 LDAP_F (void) ldap_int_utils_init LDAP_P(( void ));
352
353
354 /*
355  * in print.c
356  */
357 LDAP_F (int) ldap_log_printf LDAP_P((LDAP *ld, int level, const char *fmt, ...)) LDAP_GCCATTR((format(printf, 3, 4)));
358
359 /*
360  * in cache.c
361  */
362 LDAP_F (void) ldap_add_request_to_cache LDAP_P(( LDAP *ld, ber_tag_t msgtype,
363         BerElement *request ));
364 LDAP_F (void) ldap_add_result_to_cache LDAP_P(( LDAP *ld, LDAPMessage *result ));
365 LDAP_F (int) ldap_check_cache LDAP_P(( LDAP *ld, ber_tag_t msgtype, BerElement *request ));
366
367 /*
368  * in controls.c
369  */
370 LDAP_F (LDAPControl *) ldap_control_dup LDAP_P((
371         const LDAPControl *ctrl ));
372
373 LDAP_F (LDAPControl **) ldap_controls_dup LDAP_P((
374         LDAPControl *const *ctrls ));
375
376 LDAP_F (int) ldap_int_get_controls LDAP_P((
377         BerElement *be,
378         LDAPControl ***ctrlsp));
379
380 LDAP_F (int) ldap_int_put_controls LDAP_P((
381         LDAP *ld,
382         LDAPControl *const *ctrls,
383         BerElement *ber ));
384
385 LDAP_F( int ) 
386 ldap_int_create_control LDAP_P(( 
387         const char *requestOID, 
388         BerElement *ber, 
389         int iscritical,
390         LDAPControl **ctrlp ));
391
392 /*
393  * in dsparse.c
394  */
395 LDAP_F (int) ldap_int_next_line_tokens LDAP_P(( char **bufp, ber_len_t *blenp, char ***toksp ));
396
397 #ifdef LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND
398 /*
399  * in kerberos.c
400  */
401 LDAP_F (char *) ldap_get_kerberosv4_credentials LDAP_P((
402         LDAP *ld,
403         LDAP_CONST char *who,
404         LDAP_CONST char *service,
405         ber_len_t *len ));
406
407 #endif /* LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND */
408
409
410 /*
411  * in open.c
412  */
413 LDAP_F (int) ldap_open_defconn( LDAP *ld );
414 LDAP_F (int) ldap_int_open_connection( LDAP *ld,
415         LDAPConn *conn, LDAPURLDesc *srvlist, int async );
416
417 /*
418  * in os-ip.c
419  */
420 LDAP_F (int) ldap_int_tblsize;
421 LDAP_F (int) ldap_int_timeval_dup( struct timeval **dest, const struct timeval *tm );
422 LDAP_F (int) ldap_connect_to_host( LDAP *ld, Sockbuf *sb,
423         int proto, const char *host, unsigned long address, int port,
424         int async );
425
426 #if defined(LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND) || defined(HAVE_TLS) || defined(HAVE_CYRUS_SASL)
427 LDAP_V (char *) ldap_int_hostname;
428 LDAP_F (char *) ldap_host_connected_to( Sockbuf *sb );
429 #endif /* LDAP_API_FEATURE_X_OPENLDAP_V2_KBIND */
430
431 LDAP_F (void) ldap_int_ip_init( void );
432 LDAP_F (int) do_ldap_select( LDAP *ld, struct timeval *timeout );
433 LDAP_F (void *) ldap_new_select_info( void );
434 LDAP_F (void) ldap_free_select_info( void *sip );
435 LDAP_F (void) ldap_mark_select_write( LDAP *ld, Sockbuf *sb );
436 LDAP_F (void) ldap_mark_select_read( LDAP *ld, Sockbuf *sb );
437 LDAP_F (void) ldap_mark_select_clear( LDAP *ld, Sockbuf *sb );
438 LDAP_F (int) ldap_is_read_ready( LDAP *ld, Sockbuf *sb );
439 LDAP_F (int) ldap_is_write_ready( LDAP *ld, Sockbuf *sb );
440
441 /*
442  * in os-local.c
443  */
444 #ifdef LDAP_PF_UNIX 
445 LDAP_F (int) ldap_connect_to_path( LDAP *ld, Sockbuf *sb, int proto,
446         const char *path, int async );
447 #endif /* LDAP_PF_UNIX */
448
449 /*
450  * in request.c
451  */
452 LDAP_F (ber_int_t) ldap_send_initial_request( LDAP *ld, ber_tag_t msgtype,
453         const char *dn, BerElement *ber );
454 LDAP_F (BerElement *) ldap_alloc_ber_with_options( LDAP *ld );
455 LDAP_F (void) ldap_set_ber_options( LDAP *ld, BerElement *ber );
456
457 LDAP_F (int) ldap_send_server_request( LDAP *ld, BerElement *ber, ber_int_t msgid, LDAPRequest *parentreq, LDAPURLDesc *srvlist, LDAPConn *lc, LDAPreqinfo *bind );
458 LDAP_F (LDAPConn *) ldap_new_connection( LDAP *ld, LDAPURLDesc *srvlist, int use_ldsb, int connect, LDAPreqinfo *bind );
459 LDAP_F (LDAPRequest *) ldap_find_request_by_msgid( LDAP *ld, ber_int_t msgid );
460 LDAP_F (void) ldap_free_request( LDAP *ld, LDAPRequest *lr );
461 LDAP_F (void) ldap_free_connection( LDAP *ld, LDAPConn *lc, int force, int unbind );
462 LDAP_F (void) ldap_dump_connection( LDAP *ld, LDAPConn *lconns, int all );
463 LDAP_F (void) ldap_dump_requests_and_responses( LDAP *ld );
464 LDAP_F (int) ldap_chase_referrals( LDAP *ld, LDAPRequest *lr, char **errstrp, int *hadrefp );
465 LDAP_F (int) ldap_chase_v3referrals( LDAP *ld, LDAPRequest *lr, char **refs, char **referralsp, int *hadrefp );
466 LDAP_F (int) ldap_append_referral( LDAP *ld, char **referralsp, char *s );
467
468 /*
469  * in result.c:
470  */
471 #ifdef LDAP_CONNECTIONLESS
472 LDAP_F (int) cldap_getmsg( LDAP *ld, struct timeval *timeout, BerElement *ber );
473 #endif
474 LDAP_F (char *) ldap_int_msgtype2str( ber_tag_t tag );
475
476 /*
477  * in search.c
478  */
479 LDAP_F (BerElement *) ldap_build_search_req LDAP_P((
480         LDAP *ld,
481         const char *base,
482         ber_int_t scope,
483         const char *filter,
484         char **attrs,
485         ber_int_t attrsonly,
486         LDAPControl **sctrls,
487         LDAPControl **cctrls,
488         ber_int_t timelimit,
489         ber_int_t sizelimit ));
490
491 /*
492  * in string.c
493  */
494         /* see <ac/string.h> */
495
496 /*
497  * in unbind.c
498  */
499 LDAP_F (int) ldap_ld_free LDAP_P((
500         LDAP *ld,
501         int close,
502         LDAPControl **sctrls,
503         LDAPControl **cctrls ));
504
505 LDAP_F (int) ldap_send_unbind LDAP_P((
506         LDAP *ld,
507         Sockbuf *sb,
508         LDAPControl **sctrls,
509         LDAPControl **cctrls ));
510
511 /*
512  * in url.c
513  */
514 LDAP_F (LDAPURLDesc *) ldap_url_dup LDAP_P((
515         LDAPURLDesc *ludp ));
516
517 LDAP_F (LDAPURLDesc *) ldap_url_duplist LDAP_P((
518         LDAPURLDesc *ludlist ));
519
520 LDAP_F (int) ldap_url_parselist LDAP_P((
521         LDAPURLDesc **ludlist,
522         const char *url ));
523
524 LDAP_F (int) ldap_url_parsehosts LDAP_P((
525         LDAPURLDesc **ludlist,
526         const char *hosts ));
527
528 LDAP_F (char *) ldap_url_list2hosts LDAP_P((
529         LDAPURLDesc *ludlist ));
530
531 LDAP_F (char *) ldap_url_list2urls LDAP_P((
532         LDAPURLDesc *ludlist ));
533
534 LDAP_F (void) ldap_free_urllist LDAP_P((
535         LDAPURLDesc *ludlist ));
536
537 /*
538  * in cyrus.c
539  */
540 LDAP_F (int) ldap_int_sasl_init LDAP_P(( void ));
541
542 LDAP_F (int) ldap_int_sasl_open LDAP_P((
543         LDAP *ld, LDAPConn *conn,
544         const char* host, ber_len_t ssf ));
545 LDAP_F (int) ldap_int_sasl_close LDAP_P(( LDAP *ld, LDAPConn *conn ));
546
547 LDAP_F (int) ldap_int_sasl_get_option LDAP_P(( LDAP *ld,
548         int option, void *arg ));
549 LDAP_F (int) ldap_int_sasl_set_option LDAP_P(( LDAP *ld,
550         int option, void *arg ));
551 LDAP_F (int) ldap_int_sasl_config LDAP_P(( struct ldapoptions *lo,
552         int option, const char *arg ));
553
554 LDAP_F (int) ldap_int_sasl_bind LDAP_P((
555         struct ldap *ld,
556         const char *,
557         const char *,
558         LDAPControl **, LDAPControl **,
559         LDAP_SASL_INTERACT_PROC *interact,
560         void *defaults));
561
562 /*
563  * in tls.c
564  */
565 LDAP_F (int) ldap_int_tls_config LDAP_P(( struct ldapoptions *lo, int option, const char *arg ));
566
567 LDAP_END_DECL
568
569 #endif /* _LDAP_INT_H */