1 /* Copyright (c) 2012, 2019, Oracle and/or its affiliates. All rights reserved. 2 3 This program is free software; you can redistribute it and/or modify 4 it under the terms of the GNU General Public License, version 2.0, 5 as published by the Free Software Foundation. 6 7 This program is also distributed with certain software (including 8 but not limited to OpenSSL) that is licensed under separate terms, 9 as designated in a particular file or component or in included license 10 documentation. The authors of MySQL hereby grant you an additional 11 permission to link the program and your derivative works with the 12 separately licensed software that they have included with MySQL. 13 14 This program is distributed in the hope that it will be useful, 15 but WITHOUT ANY WARRANTY; without even the implied warranty of 16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 17 GNU General Public License, version 2.0, for more details. 18 19 You should have received a copy of the GNU General Public License 20 along with this program; if not, write to the Free Software 21 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ 22 23 #ifndef MY_DEFAULT_PRIV_INCLUDED 24 #define MY_DEFAULT_PRIV_INCLUDED 25 26 /** 27 @file mysys/my_default_priv.h 28 */ 29 30 #include "my_macros.h" 31 32 /* 33 Number of byte used to store the length of 34 cipher that follows. 35 */ 36 #define MAX_CIPHER_STORE_LEN 4U 37 #define LOGIN_KEY_LEN 20U 38 39 /** 40 Place the login file name in the specified buffer. 41 42 @param [out] file_name Buffer to hold login file name 43 @param [in] file_name_size Length of the buffer 44 45 @return 1 - Success 46 0 - Failure 47 */ 48 int my_default_get_login_file(char *file_name, size_t file_name_size); 49 50 #endif /* MY_DEFAULT_PRIV_INCLUDED */ 51