diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2014-01-22 16:12:31 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-01-22 16:12:31 +0100 |
commit | 368509f5d18ec801709935b4bf92d7ec99bf96d6 (patch) | |
tree | b3991c13c43bd94838a9934b5d9ace8781064b08 /src/pki_gcrypt.c | |
parent | 7eff8893847270da1e05300d7c26734d04c0b375 (diff) | |
download | libssh-368509f5d18ec801709935b4bf92d7ec99bf96d6.tar.gz libssh-368509f5d18ec801709935b4bf92d7ec99bf96d6.tar.xz libssh-368509f5d18ec801709935b4bf92d7ec99bf96d6.zip |
pki: Use ssh_buffer_add_data() in pki_gcrypt..
Diffstat (limited to 'src/pki_gcrypt.c')
-rw-r--r-- | src/pki_gcrypt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pki_gcrypt.c b/src/pki_gcrypt.c index fbfcf76c..fff5237c 100644 --- a/src/pki_gcrypt.c +++ b/src/pki_gcrypt.c @@ -388,7 +388,7 @@ static ssh_buffer privatekey_string_to_buffer(const char *pkey, int type, } } else { if(len > 0) { - if (buffer_add_data(buffer, p, len) < 0) { + if (ssh_buffer_add_data(buffer, p, len) < 0) { ssh_buffer_free(buffer); SAFE_FREE(iv); return NULL; @@ -398,7 +398,7 @@ static ssh_buffer privatekey_string_to_buffer(const char *pkey, int type, get_next_line(p, len); while(len > 0 && strncmp(p, header_end, header_end_size) != 0) { - if (buffer_add_data(buffer, p, len) < 0) { + if (ssh_buffer_add_data(buffer, p, len) < 0) { ssh_buffer_free(buffer); SAFE_FREE(iv); return NULL; @@ -412,7 +412,7 @@ static ssh_buffer privatekey_string_to_buffer(const char *pkey, int type, return NULL; } - if (buffer_add_data(buffer, "\0", 1) < 0) { + if (ssh_buffer_add_data(buffer, "\0", 1) < 0) { ssh_buffer_free(buffer); SAFE_FREE(iv); return NULL; |