Hi all,
I have downloaded SAPSSOEXT_0-10002920.ZIP from http://service.sap.com and build an interface-file for SWIG 1.3.21 and Python 2.1.3
start
sapssoext.i--
%module sapssoext
%{
#include "sapssoext.h"
%}
extern int MySapEvalLogonTicket( char, char, char, unsigned char, int, unsigned char, int, unsigned char , int, unsigned char, int, void );
extern int MySapParseCertificate( unsigned char, int, char, char, int );
extern int MySapInitialize( char* );
extern int MySapShutdown( void );
end
sapssoext.i--
After that I build a _sapssoext.so module:
swig -python sapssoext.i
gcc -c sapssoext_wrap.c -I/usr/include/python2.1
gcc -o sapssoext.so -shared sapssoextwrap.o -lsapssoext -l sapsecu
My Python code looks like:
start
ssosample.py--
#!/usr/bin/python2.1
from _sapssoext import MySapInitialize
result = MySapInitialize("SAPdefault")
print result
...
end
ssosample.py--
If I call ssosample.py the result is 14 which should be labeled as MYSAP_SECTK_RELATED I think.
What should this error code mean ? I did not found an explaination anywhere.
Has anybody a complete example for use of sapssoext under Linux and Python ?
Regards,
Dirk