Skip to content

Commit

Permalink
fix const on return type
Browse files Browse the repository at this point in the history
- const applies to return type not the function
  • Loading branch information
MartinNowak committed Oct 15, 2014
1 parent ad30035 commit b3a334b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
22 changes: 11 additions & 11 deletions deimos/openssl/evp.d
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,7 @@ version(OPENSSL_NO_RC4) {} else {
const(EVP_CIPHER)* EVP_rc4();
const(EVP_CIPHER)* EVP_rc4_40();
version(OPENSSL_NO_MD5) {} else {
const EVP_CIPHER *EVP_rc4_hmac_md5();
const(EVP_CIPHER)* EVP_rc4_hmac_md5();
}
}
version(OPENSSL_NO_IDEA) {} else {
Expand Down Expand Up @@ -791,9 +791,9 @@ const(EVP_CIPHER)* EVP_aes_128_cfb128();
alias EVP_aes_128_cfb128 EVP_aes_128_cfb;
const(EVP_CIPHER)* EVP_aes_128_ofb();
const(EVP_CIPHER)* EVP_aes_128_ctr();
const EVP_CIPHER *EVP_aes_128_ccm();
const EVP_CIPHER *EVP_aes_128_gcm();
const EVP_CIPHER *EVP_aes_128_xts();
const(EVP_CIPHER)* EVP_aes_128_ccm();
const(EVP_CIPHER)* EVP_aes_128_gcm();
const(EVP_CIPHER)* EVP_aes_128_xts();
const(EVP_CIPHER)* EVP_aes_192_ecb();
const(EVP_CIPHER)* EVP_aes_192_cbc();
const(EVP_CIPHER)* EVP_aes_192_cfb1();
Expand All @@ -802,8 +802,8 @@ const(EVP_CIPHER)* EVP_aes_192_cfb128();
alias EVP_aes_192_cfb128 EVP_aes_192_cfb;
const(EVP_CIPHER)* EVP_aes_192_ofb();
const(EVP_CIPHER)* EVP_aes_192_ctr();
const EVP_CIPHER *EVP_aes_192_ccm();
const EVP_CIPHER *EVP_aes_192_gcm();
const(EVP_CIPHER)* EVP_aes_192_ccm();
const(EVP_CIPHER)* EVP_aes_192_gcm();
const(EVP_CIPHER)* EVP_aes_256_ecb();
const(EVP_CIPHER)* EVP_aes_256_cbc();
const(EVP_CIPHER)* EVP_aes_256_cfb1();
Expand All @@ -812,12 +812,12 @@ const(EVP_CIPHER)* EVP_aes_256_cfb128();
alias EVP_aes_256_cfb128 EVP_aes_256_cfb;
const(EVP_CIPHER)* EVP_aes_256_ofb();
const(EVP_CIPHER)* EVP_aes_256_ctr();
const EVP_CIPHER *EVP_aes_256_ccm();
const EVP_CIPHER *EVP_aes_256_gcm();
const EVP_CIPHER *EVP_aes_256_xts();
const(EVP_CIPHER)* EVP_aes_256_ccm();
const(EVP_CIPHER)* EVP_aes_256_gcm();
const(EVP_CIPHER)* EVP_aes_256_xts();
version(OPENSSL_NO_SHA) {} else version(OPENSSL_NO_SHA1) {} else {
const EVP_CIPHER *EVP_aes_128_cbc_hmac_sha1();
const EVP_CIPHER *EVP_aes_256_cbc_hmac_sha1();
const(EVP_CIPHER)* EVP_aes_128_cbc_hmac_sha1();
const(EVP_CIPHER)* EVP_aes_256_cbc_hmac_sha1();
}
}
version(OPENSSL_NO_CAMELLIA) {} else {
Expand Down
12 changes: 6 additions & 6 deletions deimos/openssl/ssl.d
Original file line number Diff line number Diff line change
Expand Up @@ -1944,13 +1944,13 @@ const(SSL_METHOD)* TLSv1_method(); /* TLSv1.0 */
const(SSL_METHOD)* TLSv1_server_method(); /* TLSv1.0 */
const(SSL_METHOD)* TLSv1_client_method(); /* TLSv1.0 */

const SSL_METHOD *TLSv1_1_method(); /* TLSv1.1 */
const SSL_METHOD *TLSv1_1_server_method(); /* TLSv1.1 */
const SSL_METHOD *TLSv1_1_client_method(); /* TLSv1.1 */
const(SSL_METHOD)* TLSv1_1_method(); /* TLSv1.1 */
const(SSL_METHOD)* TLSv1_1_server_method(); /* TLSv1.1 */
const(SSL_METHOD)* TLSv1_1_client_method(); /* TLSv1.1 */

const SSL_METHOD *TLSv1_2_method(); /* TLSv1.2 */
const SSL_METHOD *TLSv1_2_server_method(); /* TLSv1.2 */
const SSL_METHOD *TLSv1_2_client_method(); /* TLSv1.2 */
const(SSL_METHOD)* TLSv1_2_method(); /* TLSv1.2 */
const(SSL_METHOD)* TLSv1_2_server_method(); /* TLSv1.2 */
const(SSL_METHOD)* TLSv1_2_client_method(); /* TLSv1.2 */


const(SSL_METHOD)* DTLSv1_method(); /* DTLSv1.0 */
Expand Down

0 comments on commit b3a334b

Please sign in to comment.