[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn commit: r1005065 - in /subversion/branches/gpg-agent-password-store: ./ build/generator/ subversion/include/ subversion/include/private/ subversion/libsvn_auth_gpg_agent/ subversion/libsvn_subr/

From: Senthil Kumaran S <senthil_at_collab.net>
Date: Fri, 08 Oct 2010 16:52:25 +0530

Hi Philip,

Philip Martin wrote:
> stylesen_at_apache.org writes:
>
>> Author: stylesen
>> Date: Wed Oct 6 14:41:35 2010
>> New Revision: 1005065
>
>> +static svn_boolean_t
>> +password_get_gpg_agent(const char **password,
>> + apr_hash_t *creds,
>> + const char *realmstring,
>> + const char *username,
>> + apr_hash_t *parameters,
>> + svn_boolean_t non_interactive,
>> + apr_pool_t *pool)
>> +{
>> + int sd;
>> + char *gpg_agent_info = NULL;
>> + char *value;
>> + char *p = NULL;
>> + char *ep = NULL;
>> + char *buffer;
>> +
>> + apr_array_header_t *socket_details;
>> + char *request = NULL;
>> + const char *cache_id = NULL;
>> + struct sockaddr_un addr;
>> + int recvd;
>> + char *tty_name;
>> + char *tty_type;
>> + const char *socket_name = NULL;
>> + svn_checksum_t *digest = NULL;
>> +
>> + value = getenv( "GPG_AGENT_INFO");
>> +
>> + if (value != NULL)
>> + {
>> + gpg_agent_info = apr_pstrmemdup(pool, value, strlen(value));
>> + socket_details = svn_cstring_split(gpg_agent_info, ":", TRUE, pool);
>
> No need to apr_pstrmemdup if passing to svn_cstring_split.

I ve incorporated many of the changes you mentioned, in r1005780, except for
the apr sockets and config file stuff thingy which I shall work on later.

Once again, thanks for the review :)

-- 
Senthil Kumaran S
http://www.stylesen.org/
Received on 2010-10-08 13:23:08 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.