History log of /openbsd-current/usr.sbin/smtpd/crypto.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.10 14-Jun-2021 eric

add required headers for smtpd.h and remove unnecessary ones in other files.

ok jung@


Revision tags: OPENBSD_6_9_BASE
# 1.9 23-Jan-2021 rob

Remove unused variables found by clang. Additional unused var spotted by eric@.

OK mvs@, eric@


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.8 28-Jun-2019 deraadt

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.


# 1.7 24-May-2019 gilles

switch from having automatic EVP_CIPHER_CTX variables to allocating them
with EVP_CIPHER_CTX_new() and releasing them with EVP_CIPHER_CTX_free().

ok sunil@ and millert@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.6 03-Sep-2016 gilles

switch from EVP_{En,De}cryptInit & EVP_{En,De}cryptFinal to their _ex
counterparts, as suggested by bcook

ok bcook@, sunil@, eric@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.5 28-Dec-2015 jung

remove spaces after '!'

no binary change

ok millert


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.4 26-Dec-2013 eric

bcopy -> memmove
bzero -> memset


Revision tags: OPENBSD_5_4_BASE
# 1.3 22-Jul-2013 eric

fix bogus warning due to limited range on 32bit archs.


# 1.2 19-Jul-2013 eric

unused variable


# 1.1 04-May-2013 gilles

Add crypto.c to provide smtpd with a way to encrypt envelopes and messages
using aes-256-gcm before they hit the queue. not "plugged" yet.

lots of comments from mikeb, tedu and djm.


# 1.9 23-Jan-2021 rob

Remove unused variables found by clang. Additional unused var spotted by eric@.

OK mvs@, eric@


Revision tags: OPENBSD_6_6_BASE OPENBSD_6_7_BASE OPENBSD_6_8_BASE
# 1.8 28-Jun-2019 deraadt

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.


# 1.7 24-May-2019 gilles

switch from having automatic EVP_CIPHER_CTX variables to allocating them
with EVP_CIPHER_CTX_new() and releasing them with EVP_CIPHER_CTX_free().

ok sunil@ and millert@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.6 03-Sep-2016 gilles

switch from EVP_{En,De}cryptInit & EVP_{En,De}cryptFinal to their _ex
counterparts, as suggested by bcook

ok bcook@, sunil@, eric@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.5 28-Dec-2015 jung

remove spaces after '!'

no binary change

ok millert


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.4 26-Dec-2013 eric

bcopy -> memmove
bzero -> memset


Revision tags: OPENBSD_5_4_BASE
# 1.3 22-Jul-2013 eric

fix bogus warning due to limited range on 32bit archs.


# 1.2 19-Jul-2013 eric

unused variable


# 1.1 04-May-2013 gilles

Add crypto.c to provide smtpd with a way to encrypt envelopes and messages
using aes-256-gcm before they hit the queue. not "plugged" yet.

lots of comments from mikeb, tedu and djm.


# 1.8 28-Jun-2019 deraadt

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.


# 1.7 24-May-2019 gilles

switch from having automatic EVP_CIPHER_CTX variables to allocating them
with EVP_CIPHER_CTX_new() and releasing them with EVP_CIPHER_CTX_free().

ok sunil@ and millert@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.6 03-Sep-2016 gilles

switch from EVP_{En,De}cryptInit & EVP_{En,De}cryptFinal to their _ex
counterparts, as suggested by bcook

ok bcook@, sunil@, eric@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.5 28-Dec-2015 jung

remove spaces after '!'

no binary change

ok millert


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.4 26-Dec-2013 eric

bcopy -> memmove
bzero -> memset


Revision tags: OPENBSD_5_4_BASE
# 1.3 22-Jul-2013 eric

fix bogus warning due to limited range on 32bit archs.


# 1.2 19-Jul-2013 eric

unused variable


# 1.1 04-May-2013 gilles

Add crypto.c to provide smtpd with a way to encrypt envelopes and messages
using aes-256-gcm before they hit the queue. not "plugged" yet.

lots of comments from mikeb, tedu and djm.


# 1.7 24-May-2019 gilles

switch from having automatic EVP_CIPHER_CTX variables to allocating them
with EVP_CIPHER_CTX_new() and releasing them with EVP_CIPHER_CTX_free().

ok sunil@ and millert@


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE
# 1.6 03-Sep-2016 gilles

switch from EVP_{En,De}cryptInit & EVP_{En,De}cryptFinal to their _ex
counterparts, as suggested by bcook

ok bcook@, sunil@, eric@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.5 28-Dec-2015 jung

remove spaces after '!'

no binary change

ok millert


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.4 26-Dec-2013 eric

bcopy -> memmove
bzero -> memset


Revision tags: OPENBSD_5_4_BASE
# 1.3 22-Jul-2013 eric

fix bogus warning due to limited range on 32bit archs.


# 1.2 19-Jul-2013 eric

unused variable


# 1.1 04-May-2013 gilles

Add crypto.c to provide smtpd with a way to encrypt envelopes and messages
using aes-256-gcm before they hit the queue. not "plugged" yet.

lots of comments from mikeb, tedu and djm.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.6 03-Sep-2016 gilles

switch from EVP_{En,De}cryptInit & EVP_{En,De}cryptFinal to their _ex
counterparts, as suggested by bcook

ok bcook@, sunil@, eric@


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.5 28-Dec-2015 jung

remove spaces after '!'

no binary change

ok millert


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.4 26-Dec-2013 eric

bcopy -> memmove
bzero -> memset


Revision tags: OPENBSD_5_4_BASE
# 1.3 22-Jul-2013 eric

fix bogus warning due to limited range on 32bit archs.


# 1.2 19-Jul-2013 eric

unused variable


# 1.1 04-May-2013 gilles

Add crypto.c to provide smtpd with a way to encrypt envelopes and messages
using aes-256-gcm before they hit the queue. not "plugged" yet.

lots of comments from mikeb, tedu and djm.