From 23408193df890a16cdb322e93128c85c7683efbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Fri, 10 Aug 2007 10:16:45 +0000 Subject: [PATCH] Document that the caller needs to do make a local copy of the result of krb5_config_get_string. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@21905 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/krb5/krb5_config.3 | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/krb5/krb5_config.3 b/lib/krb5/krb5_config.3 index 5972f404c..13b5ce73e 100644 --- a/lib/krb5/krb5_config.3 +++ b/lib/krb5/krb5_config.3 @@ -1,4 +1,4 @@ -.\" Copyright (c) 2000 - 2005 Kungliga Tekniska Högskolan +.\" Copyright (c) 2000 - 2007 Kungliga Tekniska Högskolan .\" (Royal Institute of Technology, Stockholm, Sweden). .\" All rights reserved. .\" @@ -32,7 +32,7 @@ .\" .\" $Id$ .\" -.Dd August 23, 2005 +.Dd August 10, 2007 .Dt KRB5_CONFIG_GET 3 .Os HEIMDAL .Sh NAME @@ -272,6 +272,14 @@ seconds, so the string will be converted to 1209600 (2 * 7 * 24 * 60 * 60). .Pp +.Fn krb5_config_get_string +returns a +.Ft "const char *" +to a string in the configuration database. The string not be valid +after reload of the configuration database +.\" or a call to .Fn krb5_config_set_string , +so a caller should make a local copy if its need to keep the database. +.Pp .Fn krb5_config_free_strings free .Fa strings