|
UDK 3.2.7 C/C++ API Reference
|
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ 00002 /* 00003 * This file is part of the LibreOffice project. 00004 * 00005 * This Source Code Form is subject to the terms of the Mozilla Public 00006 * License, v. 2.0. If a copy of the MPL was not distributed with this 00007 * file, You can obtain one at http://mozilla.org/MPL/2.0/. 00008 * 00009 * This file incorporates work covered by the following license notice: 00010 * 00011 * Licensed to the Apache Software Foundation (ASF) under one or more 00012 * contributor license agreements. See the NOTICE file distributed 00013 * with this work for additional information regarding copyright 00014 * ownership. The ASF licenses this file to you under the Apache 00015 * License, Version 2.0 (the "License"); you may not use this file 00016 * except in compliance with the License. You may obtain a copy of 00017 * the License at http://www.apache.org/licenses/LICENSE-2.0 . 00018 */ 00019 00020 #ifndef _OSL_SECURITY_H_ 00021 #define _OSL_SECURITY_H_ 00022 00023 #include "sal/config.h" 00024 00025 #include "rtl/ustring.h" 00026 #include "sal/saldllapi.h" 00027 00028 #ifdef __cplusplus 00029 extern "C" { 00030 #endif 00031 00032 typedef enum { 00033 osl_Security_E_None, 00034 osl_Security_E_UserUnknown, 00035 osl_Security_E_WrongPassword, 00036 osl_Security_E_Unknown, 00037 osl_Security_E_FORCE_EQUAL_SIZE = SAL_MAX_ENUM 00038 } oslSecurityError; 00039 00045 typedef void* oslSecurity; 00046 00053 SAL_DLLPUBLIC oslSecurity SAL_CALL osl_getCurrentSecurity(void); 00054 00066 SAL_DLLPUBLIC oslSecurityError SAL_CALL osl_loginUser( 00067 rtl_uString *strUserName, 00068 rtl_uString *strPasswd, 00069 oslSecurity *pSecurity 00070 ); 00071 00084 SAL_DLLPUBLIC oslSecurityError SAL_CALL osl_loginUserOnFileServer( 00085 rtl_uString *strUserName, 00086 rtl_uString *strPasswd, 00087 rtl_uString *strFileServer, 00088 oslSecurity *pSecurity 00089 ); 00090 00095 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_isAdministrator( 00096 oslSecurity Security); 00097 00102 SAL_DLLPUBLIC void SAL_CALL osl_freeSecurityHandle( 00103 oslSecurity Security); 00104 00110 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getUserIdent( 00111 oslSecurity Security, rtl_uString **strIdent); 00112 00118 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getUserName( 00119 oslSecurity Security, rtl_uString **strName); 00120 00126 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getHomeDir( 00127 oslSecurity Security, rtl_uString **strDirectory); 00128 00134 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_getConfigDir( 00135 oslSecurity Security, rtl_uString **strDirectory); 00136 00137 00144 SAL_DLLPUBLIC sal_Bool SAL_CALL osl_loadUserProfile( 00145 oslSecurity Security); 00146 00147 00154 SAL_DLLPUBLIC void SAL_CALL osl_unloadUserProfile( 00155 oslSecurity Security); 00156 00157 #ifdef __cplusplus 00158 } 00159 #endif 00160 00161 #endif /* _OSL_SECURITY_H_ */ 00162 00163 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
1.7.3