Re: [PATCH] wolfSSL: support both DER and PEM blobs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Apr 29, 2022 at 04:18:38PM +0200, Juliusz Sosinowicz wrote:
> Add support for loading private keys and certificates in both PEM and DER formats with wolfSSL

Thanks, applied.

>  	if (!ok && private_key) {
>  		if (wolfSSL_use_PrivateKey_file(conn->ssl, private_key,
> -						SSL_FILETYPE_PEM) <= 0) {
> +						SSL_FILETYPE_PEM) != SSL_SUCCESS) {
>  			wpa_printf(MSG_INFO,
>  				   "SSL: use private key PEM file failed");
>  			if (wolfSSL_use_PrivateKey_file(conn->ssl, private_key,
> -							SSL_FILETYPE_ASN1) <= 0)
> -			{
> +						SSL_FILETYPE_ASN1) != SSL_SUCCESS) {
>  				wpa_printf(MSG_INFO,
>  					   "SSL: use private key DER file failed");
> -			} else {
> -				ok = 1;
>  			}

Though, I dropped this removal of ok = 1 path to avoid breaking existing
functionality for the first wolfSSL_use_PrivateKey_file(PEM) call.

-- 
Jouni Malinen                                            PGP id EFC895FA

_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux