2007-11-21 12:31:41 +01:00
/*
Unix S M B / C I F S i m p l e m e n t a t i o n .
C o p y r i g h t ( C ) J e l m e r V e r n o o i j < j e l m e r @ s a m b a . o r g > 2007
T h i s p r o g r a m is f r e e s o f t w a r e ; y o u c a n r e d i s t r i b u t e i t and / or m o d i f y
i t u n d e r t h e t e r m s of t h e G N U G e n e r a l Public L i c e n s e as p u b l i s h e d by
t h e F r e e S o f t w a r e F o u n d a t i o n ; e i t h e r version 3 of t h e L i c e n s e , or
( at y o u r option ) any l a t e r version .
T h i s p r o g r a m is d i s t r i b u t e d in t h e h o p e t h a t i t w i l l b e u s e f u l ,
b u t W I T H O U T ANY W A R R A N T Y ; w i t h o u t e v e n t h e i m p l i e d w a r r a n t y of
M E R C H A N T A B I L I T Y or F I T N E S S FOR A P A R T I C U L A R P U R P O S E . S e e t h e
G N U G e n e r a l Public L i c e n s e for m o r e d e t a i l s .
Y o u s h o u l d h a v e r e c e i v e d a c o p y of t h e G N U G e n e r a l Public L i c e n s e
a l o n g with t h i s p r o g r a m . If not , s e e < h t t p : //www.gnu.org/licenses/>.
* /
2008-05-24 04:01:57 +02:00
% define D O C S T R I N G
"Authentication and authorization support."
% e n d def
% m o d u l e ( d o c s t r i n g = D O C S T R I N G , p a c k a g e = "samba.auth" ) a u t h
2007-11-21 12:31:41 +01:00
% {
/* I n c l u d e h e a d e r s */
# i n c l u d e < s t d i n t . h >
# i n c l u d e < s t d b o o l . h >
# i n c l u d e "includes.h"
2007-11-29 01:36:31 +01:00
# i n c l u d e "auth/session.h"
# i n c l u d e "auth/system_session_proto.h"
2007-12-17 04:22:44 +01:00
# i n c l u d e "param/param.h"
2007-11-21 12:31:41 +01:00
% }
2007-12-17 04:22:44 +01:00
% import "carrays.i"
% import "stdint.i"
% import "typemaps.i"
2007-11-21 12:31:41 +01:00
% import "../lib/talloc/talloc.i"
2007-12-17 04:22:44 +01:00
% import "../param/param.i"
2007-11-21 12:31:41 +01:00
2007-12-23 19:19:41 -06:00
% t y p e m a p ( default , n o b l o c k = 1 ) s t r u c t a u t h _ s e s s i o n _ i n f o * {
2007-12-03 15:53:28 +01:00
$ 1 = s y s t e m _ s e s s i o n _ a n o n ( NULL , g l o b a l _ l o a d p a r m ) ;
2007-11-21 12:31:41 +01:00
}
2007-12-23 19:19:41 -06:00
% t y p e m a p ( f r e e a r g , n o b l o c k = 1 ) s t r u c t a u t h _ s e s s i o n _ i n f o * {
2007-11-21 12:31:41 +01:00
t a l l o c _ f r e e ( $ 1 ) ;
}
2007-12-03 15:53:28 +01:00
s t r u c t a u t h _ s e s s i o n _ i n f o * s y s t e m _ s e s s i o n ( T A L L O C _ C T X * m e m _ c t x , s t r u c t l o a d p a r m _ c o n t e x t * l p _ c t x ) ;
s t r u c t a u t h _ s e s s i o n _ i n f o * s y s t e m _ s e s s i o n _ a n o n ( T A L L O C _ C T X * m e m _ c t x , s t r u c t l o a d p a r m _ c o n t e x t * l p _ c t x ) ;