Displaying 6 results from an estimated 6 matches for "engine_by_id".
2011 Apr 18
4
Solaris hardware crypto engines
...necessary to restrict use to subset
> of OpenSSL functions (the EVP_ functions) and explicitly indicate the use of
the PKCS11
> engine; something like the following works for bulk ciphers (the process for
RSA is similar):
>
> ENGINE *e;
> ENGINE_load_builtin_engines();
> e = ENGINE_by_id("pkcs11");
> ENGINE_set_default_ciphers(e);
> EVP_CIPHER_CTX_init (&ctx);
> EVP_EncryptInit (&ctx, EVP_des_cbc (), key, iv);
> EVP_EncryptUpdate (.....);
Since I'm not familiar with SSL programming, I wonder if it's possible to
modify the dovecot 1.2.x source...
2017 Oct 26
3
[RFC 0/2] add engine based keys
Engine keys are private key files which are only understood by openssl
external engines. ?The problem is they can't be loaded with the usual
openssl methods, they have to be loaded via ENGINE_load_private_key().
?Because they're files, they fit well into openssh pub/private file
structure, so they're not very appropriately handled by the pkcs11
interface because it assumes the private
2023 Mar 15
0
Build dovecot from source
...sl_iostream_openssl.so: undefined reference to `ENGINE_free at OPENSSL_1_1_0'
/opt/bin/ld: ../lib-ssl-iostream/.libs/libssl_iostream_openssl.so: undefined reference to `ENGINE_finish at OPENSSL_1_1_0'
/opt/bin/ld: ../lib-ssl-iostream/.libs/libssl_iostream_openssl.so: undefined reference to `ENGINE_by_id at OPENSSL_1_1_0'
collect2: error: ld returned 1 exit status
make[3]: *** [Makefile:892: test-http-payload] Error 1
make[3]: Leaving directory '/share/CACHEDEV1_DATA/temp/dovecot-2.3.20/src/lib-http'
make[2]: *** [Makefile:573: all-recursive] Error 1
make[2]: Leaving directory '/sha...
2020 Jan 30
6
[PATCH 1/2] Add support for openssl engine based keys
...P_PKEY *pk;
+ ENGINE *e;
+ struct sshkey *key;
+ int ret;
+ UI_METHOD *ui;
+ EVP_PKEY_CTX *ctx;
+ char hash[SHA256_DIGEST_LENGTH], result[1024];
+ size_t siglen;
+ struct ui_data d;
+
+ verbose("%s: add provider=%s, key=%s", __func__, engine, file);
+
+ ret = SSH_ERR_INTERNAL_ERROR;
+ e = ENGINE_by_id(engine);
+ if (!e) {
+ verbose("%s: failed to get engine %s", __func__, engine);
+ ERR_print_errors_fp(stderr);
+ return ret;
+ }
+
+ ui = UI_create_method("ssh-agent password writer");
+ if (!ui) {
+ verbose("%s: failed to create UI method", __func__);
+ ERR_prin...
2012 Oct 30
5
Pigeonhole 3.3 broken against Dovecot 2.1.10
...sr/local/lib/dovecot/libdovecot-storage.so: undefined reference to
`SSL_alert_type_string_long at OPENSSL_1.0.0'
/usr/local/lib/dovecot/libdovecot-storage.so: undefined reference to
`SSL_COMP_get_name at OPENSSL_1.0.0'
/usr/local/lib/dovecot/libdovecot-storage.so: undefined reference to
`ENGINE_by_id at OPENSSL_1.0.0'
/usr/local/lib/dovecot/libdovecot-storage.so: undefined reference to
`BIO_write at OPENSSL_1.0.0'
/usr/local/lib/dovecot/libdovecot-storage.so: undefined reference to
`i2d_DHparams at OPENSSL_1.0.0'
/usr/local/lib/dovecot/libdovecot-storage.so: undefined reference to...
2017 Aug 25
3
trouble compiling Dovecot 2.2.31 on Solaris 10 SPARC - libssl_iostream_openssl.so is not portable!
...sl.so
SSL_CTX_set_tmp_rsa_callback ../lib-ssl-iostream/.libs/libssl_iostream_openssl.so
X509_get_subject_name ../lib-ssl-iostream/.libs/libssl_iostream_openssl.so
SSL_library_init ../lib-ssl-iostream/.libs/libssl_iostream_openssl.so
ENGINE_finish ../lib-ssl-iostream/.libs/libssl_iostream_openssl.so
ENGINE_by_id ../lib-ssl-iostream/.libs/libssl_iostream_openssl.so
ld: fatal: symbol referencing errors. No output written to .libs/test-http-client
collect2: ld returned 1 exit status
*** Error code 1
make: Fatal error: Command failed for target `test-http-client'