diff options
| author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-05-08 23:32:28 +0200 | 
|---|---|---|
| committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-05-08 23:32:28 +0200 | 
| commit | 55adddbc16f65732b57ab8585c47001fced91d77 (patch) | |
| tree | 27e8239d48c8a6b353db356aff92ee4d225c0a0e /lib/lanplus/lanplus.c | |
| parent | d3c90cdcdf56146af89056ed36bfcc7b4d4956c5 (diff) | |
Imported Upstream version 2.9.9upstream/2.9.9
Diffstat (limited to 'lib/lanplus/lanplus.c')
| -rw-r--r-- | lib/lanplus/lanplus.c | 10 | 
1 files changed, 4 insertions, 6 deletions
| diff --git a/lib/lanplus/lanplus.c b/lib/lanplus/lanplus.c index 2fab966..e423ede 100644 --- a/lib/lanplus/lanplus.c +++ b/lib/lanplus/lanplus.c @@ -325,25 +325,23 @@ int lanplus_get_requested_ciphers(int       cipher_suite_id,  		*integrity_alg = IPMI_INTEGRITY_MD5_128;  		*crypt_alg     = IPMI_CRYPT_XRC4_40;  		break; -#if 0 -	case 15: // Note: Cipher Suite ID not (yet) confirmed in IPMI Spec or Errata 4 +#ifdef HAVE_SHA256 +	case 15:  // Note: Cipher Suite ID 15 is in in IPMI Spec or Errata 7  		*auth_alg      = IPMI_AUTH_RAKP_HMAC_SHA256;  		*integrity_alg = IPMI_INTEGRITY_NONE;  		*crypt_alg     = IPMI_CRYPT_NONE;  		break; -	case 16: // Note: Cipher Suite ID not (yet) confirmed in IPMI Spec or Errata 4 +	case 16: // Note: Cipher Suite ID 16 is in in IPMI Spec or Errata 7  		*auth_alg      = IPMI_AUTH_RAKP_HMAC_SHA256;  		*integrity_alg = IPMI_INTEGRITY_HMAC_SHA256_128;  		*crypt_alg     = IPMI_CRYPT_NONE;  		break; -#endif -#ifdef HAVE_SHA256 -        /* based on an MD5_SHA256 patch from Holger Liebig */  	case 17: // Note: Cipher Suite Id from DCMI 1.1 Spec  		*auth_alg      = IPMI_AUTH_RAKP_HMAC_SHA256;  		*integrity_alg = IPMI_INTEGRITY_HMAC_SHA256_128;  		*crypt_alg     = IPMI_CRYPT_AES_CBC_128;  		break; +    /* HAVE_SHA256: based on an MD5_SHA256 patch from Holger Liebig */  #endif  	default:  		lprintf(LOG_ERR, "invalid cipher suite id %d",cipher_suite_id); | 
