aboutsummaryrefslogtreecommitdiffstats
path: root/g10
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--g10/g10.c2
-rw-r--r--g10/seckey-cert.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/g10/g10.c b/g10/g10.c
index 432b73efd..871f31026 100644
--- a/g10/g10.c
+++ b/g10/g10.c
@@ -596,7 +596,7 @@ main( int argc, char **argv )
log_set_name("gpg");
/* check that the libraries are suitable. Do it here because
* the option parse may need services of the library */
- if ( !gcry_check_version ( "1.1.1" ) ) {
+ if ( !gcry_check_version ( "1.1.0a" ) ) {
log_fatal(_("libgcrypt is too old (need %s, have %s)\n"),
VERSION, gcry_check_version(NULL) );
}
diff --git a/g10/seckey-cert.c b/g10/seckey-cert.c
index 7cacb9f5b..af4110590 100644
--- a/g10/seckey-cert.c
+++ b/g10/seckey-cert.c
@@ -330,7 +330,7 @@ protect_secret_key( PKT_secret_key *sk, DEK *dek )
csum += checksum_mpi( sk->skey[i] );
buffer = mpi_get_buffer( sk->skey[i], &nbytes, NULL );
gcry_cipher_sync( cipher_hd );
- assert( !mpi_is_opaque(sk->skey[i]) );
+ assert( !gcry_mpi_get_flag( sk->skey[i], GCRYMPI_FLAG_OPAQUE ) );
gcry_cipher_encrypt( cipher_hd, buffer, nbytes, NULL, 0 );
mpi_set_buffer( sk->skey[i], buffer, nbytes, 0 );
m_free( buffer );