1 /************************************************************** 2 * 3 * Licensed to the Apache Software Foundation (ASF) under one 4 * or more contributor license agreements. See the NOTICE file 5 * distributed with this work for additional information 6 * regarding copyright ownership. The ASF licenses this file 7 * to you under the Apache License, Version 2.0 (the 8 * "License"); you may not use this file except in compliance 9 * with the License. You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, 14 * software distributed under the License is distributed on an 15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16 * KIND, either express or implied. See the License for the 17 * specific language governing permissions and limitations 18 * under the License. 19 * 20 *************************************************************/ 21 22 23 24 //------------------------------------------------------------------------ 25 //------------------------------------------------------------------------ 26 27 #ifndef _OSL_SECURITY_CONST_H_ 28 #define _OSL_SECURITY_CONST_H_ 29 30 #if ( defined WNT ) // Windows 31 //#define UNICODE 32 #include <tools/prewin.h> 33 // #include <windows.h> 34 #include <io.h> 35 #include <tools/postwin.h> 36 #endif 37 38 //------------------------------------------------------------------------ 39 //------------------------------------------------------------------------ 40 #include <sal/types.h> 41 #include <rtl/ustring.hxx> 42 #include <osl/file.hxx> 43 #include <osl/security.hxx> 44 45 #include <stdlib.h> 46 #include <stdio.h> 47 48 #if ( defined UNX ) || ( defined OS2 ) 49 #include <unistd.h> 50 #include <pwd.h> 51 #endif 52 53 #include <testshl/simpleheader.hxx> 54 // LLA: #include <testshl2/cmdlinebits.hxx> 55 56 57 #define BUFSIZE 1024 58 const char pTestString[17] = "Sun Microsystems"; 59 60 61 #define OSLTEST_DECLARE_USTRING( str_name, str_value ) \ 62 ::rtl::OUString a##str_name = rtl::OUString::createFromAscii( str_value ) 63 64 //------------------------------------------------------------------------ 65 // condition names 66 //------------------------------------------------------------------------ 67 OSLTEST_DECLARE_USTRING( TestSec, "testsecurity" ); 68 OSLTEST_DECLARE_USTRING( NullURL, "" ); 69 70 ::rtl::OUString aLogonUser( aNullURL ), aLogonPasswd( aNullURL ), aFileServer( aNullURL ), aStringForward( aNullURL ); 71 ::rtl::OUString strUserName( aNullURL ) , strComputerName( aNullURL ) , strHomeDirectory( aNullURL ); 72 ::rtl::OUString strConfigDirectory( aNullURL ), strUserID( aNullURL ); 73 74 sal_Bool isAdmin = sal_False; 75 76 #endif /* _OSL_SECURITY_CONST_H_ */ 77