shill: Remove uses of Base64Encode/Decode

Change to B64Encode/Decode to avoid memory leaks.

TEST=Unit tests pass
BUG=chromium:222827

Change-Id: I160fd8eae6d0d6d6307b1ab37b5d1029c3990abf
Reviewed-on: https://gerrit.chromium.org/gerrit/46172
Tested-by: Christopher Wiley <wiley@chromium.org>
Reviewed-by: Paul Stewart <pstew@chromium.org>
Commit-Queue: Christopher Wiley <wiley@chromium.org>
6 files changed
tree: eb1a29edc8f1ebdeecbf3765858aa565519adcd8
  1. bin/
  2. data/
  3. dbus_bindings/
  4. doc/
  5. shims/
  6. test-scripts/
  7. .gitignore
  8. accessor_interface.h
  9. activating_iccid_store.cc
  10. activating_iccid_store.h
  11. activating_iccid_store_unittest.cc
  12. adaptor_interfaces.h
  13. arp_client.cc
  14. arp_client.h
  15. arp_client_unittest.cc
  16. arp_packet.cc
  17. arp_packet.h
  18. arp_packet_unittest.cc
  19. async_connection.cc
  20. async_connection.h
  21. async_connection_unittest.cc
  22. attribute_list.cc
  23. attribute_list.h
  24. byte_string.cc
  25. byte_string.h
  26. byte_string_unittest.cc
  27. callback80211_metrics.cc
  28. callback80211_metrics.h
  29. callback80211_object.cc
  30. callback80211_object.h
  31. callbacks.h
  32. cellular.cc
  33. cellular.h
  34. cellular_capability.cc
  35. cellular_capability.h
  36. cellular_capability_cdma.cc
  37. cellular_capability_cdma.h
  38. cellular_capability_cdma_unittest.cc
  39. cellular_capability_classic.cc
  40. cellular_capability_classic.h
  41. cellular_capability_classic_unittest.cc
  42. cellular_capability_gsm.cc
  43. cellular_capability_gsm.h
  44. cellular_capability_gsm_unittest.cc
  45. cellular_capability_universal.cc
  46. cellular_capability_universal.h
  47. cellular_capability_universal_unittest.cc
  48. cellular_error.cc
  49. cellular_error.h
  50. cellular_operator_info.cc
  51. cellular_operator_info.h
  52. cellular_operator_info_unittest.cc
  53. cellular_service.cc
  54. cellular_service.h
  55. cellular_service_unittest.cc
  56. cellular_unittest.cc
  57. certificate_file.cc
  58. certificate_file.h
  59. certificate_file_unittest.cc
  60. config80211.cc
  61. config80211.h
  62. config80211_unittest.cc
  63. connection.cc
  64. connection.h
  65. connection_unittest.cc
  66. control_interface.h
  67. control_netlink_attribute.cc
  68. control_netlink_attribute.h
  69. crypto_des_cbc.cc
  70. crypto_des_cbc.h
  71. crypto_des_cbc_unittest.cc
  72. crypto_interface.h
  73. crypto_provider.cc
  74. crypto_provider.h
  75. crypto_provider_unittest.cc
  76. crypto_rot47.cc
  77. crypto_rot47.h
  78. crypto_rot47_unittest.cc
  79. crypto_util_proxy.cc
  80. crypto_util_proxy.h
  81. crypto_util_proxy_unittest.cc
  82. dbus_adaptor.cc
  83. dbus_adaptor.h
  84. dbus_adaptor_unittest.cc
  85. dbus_control.cc
  86. dbus_control.h
  87. dbus_manager.cc
  88. dbus_manager.h
  89. dbus_manager_unittest.cc
  90. dbus_objectmanager_proxy.cc
  91. dbus_objectmanager_proxy.h
  92. dbus_objectmanager_proxy_interface.h
  93. dbus_properties.cc
  94. dbus_properties.h
  95. dbus_properties_proxy.cc
  96. dbus_properties_proxy.h
  97. dbus_properties_proxy_interface.h
  98. dbus_properties_unittest.cc
  99. dbus_property_matchers.h
  100. dbus_service_proxy.cc
  101. dbus_service_proxy.h
  102. dbus_service_proxy_interface.h
  103. default_profile.cc
  104. default_profile.h
  105. default_profile_unittest.cc
  106. device.cc
  107. device.h
  108. device_dbus_adaptor.cc
  109. device_dbus_adaptor.h
  110. device_info.cc
  111. device_info.h
  112. device_info_unittest.cc
  113. device_stub.h
  114. device_unittest.cc
  115. dhcp_config.cc
  116. dhcp_config.h
  117. dhcp_config_unittest.cc
  118. dhcp_provider.cc
  119. dhcp_provider.h
  120. dhcp_provider_unittest.cc
  121. dhcp_proxy_interface.h
  122. dhcpcd_proxy.cc
  123. dhcpcd_proxy.h
  124. diagnostics_reporter.cc
  125. diagnostics_reporter.h
  126. diagnostics_reporter_unittest.cc
  127. dns_client.cc
  128. dns_client.h
  129. dns_client_unittest.cc
  130. endpoint.cc
  131. endpoint.h
  132. ephemeral_profile.cc
  133. ephemeral_profile.h
  134. error.cc
  135. error.h
  136. error_unittest.cc
  137. ethernet.cc
  138. ethernet.h
  139. ethernet_service.cc
  140. ethernet_service.h
  141. ethernet_service_unittest.cc
  142. event_dispatcher.cc
  143. event_dispatcher.h
  144. file_io.cc
  145. file_io.h
  146. file_reader.cc
  147. file_reader.h
  148. file_reader_unittest.cc
  149. geolocation_info.cc
  150. geolocation_info.h
  151. glib.cc
  152. glib.h
  153. glib_io_input_handler.cc
  154. glib_io_input_handler.h
  155. glib_io_ready_handler.cc
  156. glib_io_ready_handler.h
  157. HACKING
  158. hook_table.cc
  159. hook_table.h
  160. hook_table_unittest.cc
  161. http_proxy.cc
  162. http_proxy.h
  163. http_proxy_unittest.cc
  164. http_request.cc
  165. http_request.h
  166. http_request_unittest.cc
  167. http_url.cc
  168. http_url.h
  169. http_url_unittest.cc
  170. ieee80211.h
  171. io_handler.h
  172. ip_address.cc
  173. ip_address.h
  174. ip_address_unittest.cc
  175. ipconfig.cc
  176. ipconfig.h
  177. ipconfig_dbus_adaptor.cc
  178. ipconfig_dbus_adaptor.h
  179. ipconfig_unittest.cc
  180. key_file_store.cc
  181. key_file_store.h
  182. key_file_store_unittest.cc
  183. key_value_store.cc
  184. key_value_store.h
  185. key_value_store_matcher.h
  186. key_value_store_unittest.cc
  187. l2tp_ipsec_driver.cc
  188. l2tp_ipsec_driver.h
  189. l2tp_ipsec_driver_unittest.cc
  190. LICENSE
  191. link_monitor.cc
  192. link_monitor.h
  193. link_monitor_unittest.cc
  194. logging.h
  195. Makefile
  196. manager.cc
  197. manager.h
  198. manager_dbus_adaptor.cc
  199. manager_dbus_adaptor.h
  200. manager_unittest.cc
  201. memory_log.cc
  202. memory_log.h
  203. memory_log_unittest.cc
  204. metrics.cc
  205. metrics.h
  206. metrics_unittest.cc
  207. minijail.cc
  208. minijail.h
  209. mm1_bearer_proxy.cc
  210. mm1_bearer_proxy.h
  211. mm1_bearer_proxy_interface.h
  212. mm1_modem_location_proxy.cc
  213. mm1_modem_location_proxy.h
  214. mm1_modem_location_proxy_interface.h
  215. mm1_modem_modem3gpp_proxy.cc
  216. mm1_modem_modem3gpp_proxy.h
  217. mm1_modem_modem3gpp_proxy_interface.h
  218. mm1_modem_modemcdma_proxy.cc
  219. mm1_modem_modemcdma_proxy.h
  220. mm1_modem_modemcdma_proxy_interface.h
  221. mm1_modem_proxy.cc
  222. mm1_modem_proxy.h
  223. mm1_modem_proxy_interface.h
  224. mm1_modem_simple_proxy.cc
  225. mm1_modem_simple_proxy.h
  226. mm1_modem_simple_proxy_interface.h
  227. mm1_modem_time_proxy.cc
  228. mm1_modem_time_proxy.h
  229. mm1_modem_time_proxy_interface.h
  230. mm1_sim_proxy.cc
  231. mm1_sim_proxy.h
  232. mm1_sim_proxy_interface.h
  233. mock_activating_iccid_store.cc
  234. mock_activating_iccid_store.h
  235. mock_adaptors.cc
  236. mock_adaptors.h
  237. mock_ares.cc
  238. mock_ares.h
  239. mock_arp_client.cc
  240. mock_arp_client.h
  241. mock_async_connection.cc
  242. mock_async_connection.h
  243. mock_cellular.cc
  244. mock_cellular.h
  245. mock_cellular_operator_info.cc
  246. mock_cellular_operator_info.h
  247. mock_cellular_service.cc
  248. mock_cellular_service.h
  249. mock_certificate_file.cc
  250. mock_certificate_file.h
  251. mock_connection.cc
  252. mock_connection.h
  253. mock_control.cc
  254. mock_control.h
  255. mock_crypto_util_proxy.h
  256. mock_dbus_manager.cc
  257. mock_dbus_manager.h
  258. mock_dbus_objectmanager_proxy.cc
  259. mock_dbus_objectmanager_proxy.h
  260. mock_dbus_properties_proxy.cc
  261. mock_dbus_properties_proxy.h
  262. mock_dbus_service_proxy.cc
  263. mock_dbus_service_proxy.h
  264. mock_device.cc
  265. mock_device.h
  266. mock_device_info.cc
  267. mock_device_info.h
  268. mock_dhcp_config.cc
  269. mock_dhcp_config.h
  270. mock_dhcp_provider.cc
  271. mock_dhcp_provider.h
  272. mock_dhcp_proxy.cc
  273. mock_dhcp_proxy.h
  274. mock_diagnostics_reporter.cc
  275. mock_diagnostics_reporter.h
  276. mock_dns_client.cc
  277. mock_dns_client.h
  278. mock_ethernet.cc
  279. mock_ethernet.h
  280. mock_event_dispatcher.cc
  281. mock_event_dispatcher.h
  282. mock_file_io.h
  283. mock_glib.cc
  284. mock_glib.h
  285. mock_handler80211_object.h
  286. mock_http_request.cc
  287. mock_http_request.h
  288. mock_ipconfig.cc
  289. mock_ipconfig.h
  290. mock_link_monitor.cc
  291. mock_link_monitor.h
  292. mock_log.cc
  293. mock_log.h
  294. mock_log_unittest.cc
  295. mock_manager.cc
  296. mock_manager.h
  297. mock_metrics.cc
  298. mock_metrics.h
  299. mock_minijail.cc
  300. mock_minijail.h
  301. mock_mm1_bearer_proxy.cc
  302. mock_mm1_bearer_proxy.h
  303. mock_mm1_modem_location_proxy.cc
  304. mock_mm1_modem_location_proxy.h
  305. mock_mm1_modem_modem3gpp_proxy.cc
  306. mock_mm1_modem_modem3gpp_proxy.h
  307. mock_mm1_modem_modemcdma_proxy.cc
  308. mock_mm1_modem_modemcdma_proxy.h
  309. mock_mm1_modem_proxy.cc
  310. mock_mm1_modem_proxy.h
  311. mock_mm1_modem_simple_proxy.cc
  312. mock_mm1_modem_simple_proxy.h
  313. mock_mm1_modem_time_proxy.cc
  314. mock_mm1_modem_time_proxy.h
  315. mock_mm1_sim_proxy.cc
  316. mock_mm1_sim_proxy.h
  317. mock_modem.cc
  318. mock_modem.h
  319. mock_modem_cdma_proxy.cc
  320. mock_modem_cdma_proxy.h
  321. mock_modem_gobi_proxy.cc
  322. mock_modem_gobi_proxy.h
  323. mock_modem_gsm_card_proxy.cc
  324. mock_modem_gsm_card_proxy.h
  325. mock_modem_gsm_network_proxy.cc
  326. mock_modem_gsm_network_proxy.h
  327. mock_modem_info.cc
  328. mock_modem_info.h
  329. mock_modem_manager_proxy.cc
  330. mock_modem_manager_proxy.h
  331. mock_modem_proxy.cc
  332. mock_modem_proxy.h
  333. mock_modem_simple_proxy.cc
  334. mock_modem_simple_proxy.h
  335. mock_nl80211_socket.h
  336. mock_nss.cc
  337. mock_nss.h
  338. mock_openvpn_driver.cc
  339. mock_openvpn_driver.h
  340. mock_openvpn_management_server.cc
  341. mock_openvpn_management_server.h
  342. mock_portal_detector.cc
  343. mock_portal_detector.h
  344. mock_power_manager.cc
  345. mock_power_manager.h
  346. mock_power_manager_proxy.cc
  347. mock_power_manager_proxy.h
  348. mock_process_killer.cc
  349. mock_process_killer.h
  350. mock_profile.cc
  351. mock_profile.h
  352. mock_property_store.cc
  353. mock_property_store.h
  354. mock_proxy_factory.cc
  355. mock_proxy_factory.h
  356. mock_resolver.cc
  357. mock_resolver.h
  358. mock_routing_table.cc
  359. mock_routing_table.h
  360. mock_rtnl_handler.cc
  361. mock_rtnl_handler.h
  362. mock_service.cc
  363. mock_service.h
  364. mock_sockets.cc
  365. mock_sockets.h
  366. mock_store.cc
  367. mock_store.h
  368. mock_supplicant_bss_proxy.cc
  369. mock_supplicant_bss_proxy.h
  370. mock_supplicant_interface_proxy.cc
  371. mock_supplicant_interface_proxy.h
  372. mock_supplicant_network_proxy.cc
  373. mock_supplicant_network_proxy.h
  374. mock_supplicant_process_proxy.cc
  375. mock_supplicant_process_proxy.h
  376. mock_time.cc
  377. mock_time.h
  378. mock_traffic_monitor.cc
  379. mock_traffic_monitor.h
  380. mock_vpn.cc
  381. mock_vpn.h
  382. mock_vpn_driver.cc
  383. mock_vpn_driver.h
  384. mock_vpn_provider.cc
  385. mock_vpn_provider.h
  386. mock_vpn_service.cc
  387. mock_vpn_service.h
  388. mock_wifi.cc
  389. mock_wifi.h
  390. mock_wifi_provider.cc
  391. mock_wifi_provider.h
  392. mock_wifi_service.cc
  393. mock_wifi_service.h
  394. mock_wimax.cc
  395. mock_wimax.h
  396. mock_wimax_device_proxy.cc
  397. mock_wimax_device_proxy.h
  398. mock_wimax_manager_proxy.cc
  399. mock_wimax_manager_proxy.h
  400. mock_wimax_network_proxy.cc
  401. mock_wimax_network_proxy.h
  402. mock_wimax_provider.cc
  403. mock_wimax_provider.h
  404. mock_wimax_service.cc
  405. mock_wimax_service.h
  406. modem.cc
  407. modem.h
  408. modem_1.cc
  409. modem_1_unittest.cc
  410. modem_cdma_proxy.cc
  411. modem_cdma_proxy.h
  412. modem_cdma_proxy_interface.h
  413. modem_classic.cc
  414. modem_gobi_proxy.cc
  415. modem_gobi_proxy.h
  416. modem_gobi_proxy_interface.h
  417. modem_gsm_card_proxy.cc
  418. modem_gsm_card_proxy.h
  419. modem_gsm_card_proxy_interface.h
  420. modem_gsm_network_proxy.cc
  421. modem_gsm_network_proxy.h
  422. modem_gsm_network_proxy_interface.h
  423. modem_info.cc
  424. modem_info.h
  425. modem_info_unittest.cc
  426. modem_manager.cc
  427. modem_manager.h
  428. modem_manager_1.cc
  429. modem_manager_proxy.cc
  430. modem_manager_proxy.h
  431. modem_manager_proxy_interface.h
  432. modem_manager_unittest.cc
  433. modem_proxy.cc
  434. modem_proxy.h
  435. modem_proxy_interface.h
  436. modem_simple_proxy.cc
  437. modem_simple_proxy.h
  438. modem_simple_proxy_interface.h
  439. modem_unittest.cc
  440. netlink_attribute.cc
  441. netlink_attribute.h
  442. netlink_socket.cc
  443. netlink_socket.h
  444. nice_mock_control.cc
  445. nice_mock_control.h
  446. nl80211_attribute.cc
  447. nl80211_attribute.h
  448. nl80211_message.cc
  449. nl80211_message.h
  450. nl80211_socket.cc
  451. nl80211_socket.h
  452. nss.cc
  453. nss.h
  454. nss_unittest.cc
  455. openvpn_driver.cc
  456. openvpn_driver.h
  457. openvpn_driver_unittest.cc
  458. openvpn_management_server.cc
  459. openvpn_management_server.h
  460. openvpn_management_server_unittest.cc
  461. portal_detector.cc
  462. portal_detector.h
  463. portal_detector_unittest.cc
  464. power_manager.cc
  465. power_manager.h
  466. power_manager_proxy.cc
  467. power_manager_proxy.h
  468. power_manager_proxy_interface.h
  469. power_manager_unittest.cc
  470. process_killer.cc
  471. process_killer.h
  472. process_killer_unittest.cc
  473. profile.cc
  474. profile.h
  475. profile_dbus_adaptor.cc
  476. profile_dbus_adaptor.h
  477. profile_dbus_property_exporter.cc
  478. profile_dbus_property_exporter.h
  479. profile_dbus_property_exporter_unittest.cc
  480. profile_unittest.cc
  481. property_accessor.h
  482. property_accessor_unittest.cc
  483. property_iterator.h
  484. property_store.cc
  485. property_store.h
  486. property_store_unittest.cc
  487. property_store_unittest.h
  488. provider_db_unittest.bfd
  489. proxy_factory.cc
  490. proxy_factory.h
  491. refptr_types.h
  492. resolver.cc
  493. resolver.h
  494. resolver_unittest.cc
  495. routing_table.cc
  496. routing_table.h
  497. routing_table_entry.h
  498. routing_table_unittest.cc
  499. rpc_task.cc
  500. rpc_task.h
  501. rpc_task_dbus_adaptor.cc
  502. rpc_task_dbus_adaptor.h
  503. rpc_task_unittest.cc
  504. rtnl_handler.cc
  505. rtnl_handler.h
  506. rtnl_handler_unittest.cc
  507. rtnl_listener.cc
  508. rtnl_listener.h
  509. rtnl_listener_unittest.cc
  510. rtnl_message.cc
  511. rtnl_message.h
  512. rtnl_message_unittest.cc
  513. scope_logger.cc
  514. scope_logger.h
  515. scope_logger_unittest.cc
  516. service.cc
  517. service.h
  518. service_dbus_adaptor.cc
  519. service_dbus_adaptor.h
  520. service_sorter.h
  521. service_under_test.cc
  522. service_under_test.h
  523. service_unittest.cc
  524. shill_ares.cc
  525. shill_ares.h
  526. shill_config.cc
  527. shill_config.h
  528. shill_daemon.cc
  529. shill_daemon.h
  530. shill_main.cc
  531. shill_test_config.cc
  532. shill_test_config.h
  533. shill_time.cc
  534. shill_time.h
  535. shill_unittest.cc
  536. sockets.cc
  537. sockets.h
  538. static_ip_parameters.cc
  539. static_ip_parameters.h
  540. static_ip_parameters_unittest.cc
  541. store_interface.h
  542. supplicant_bss_proxy.cc
  543. supplicant_bss_proxy.h
  544. supplicant_bss_proxy_interface.h
  545. supplicant_interface_proxy.cc
  546. supplicant_interface_proxy.h
  547. supplicant_interface_proxy_interface.h
  548. supplicant_network_proxy.cc
  549. supplicant_network_proxy.h
  550. supplicant_network_proxy_interface.h
  551. supplicant_process_proxy.cc
  552. supplicant_process_proxy.h
  553. supplicant_process_proxy_interface.h
  554. technology.cc
  555. technology.h
  556. technology_unittest.cc
  557. TESTING
  558. testrunner.cc
  559. traffic_monitor.cc
  560. traffic_monitor.h
  561. traffic_monitor_unittest.cc
  562. virtio_ethernet.cc
  563. virtio_ethernet.h
  564. vpn.cc
  565. vpn.h
  566. vpn_driver.cc
  567. vpn_driver.h
  568. vpn_driver_unittest.cc
  569. vpn_provider.cc
  570. vpn_provider.h
  571. vpn_provider_unittest.cc
  572. vpn_service.cc
  573. vpn_service.h
  574. vpn_service_unittest.cc
  575. vpn_unittest.cc
  576. wifi.cc
  577. wifi.h
  578. wifi_endpoint.cc
  579. wifi_endpoint.h
  580. wifi_endpoint_unittest.cc
  581. wifi_provider.cc
  582. wifi_provider.h
  583. wifi_provider_unittest.cc
  584. wifi_service.cc
  585. wifi_service.h
  586. wifi_service_unittest.cc
  587. wifi_unittest.cc
  588. wimax.cc
  589. wimax.h
  590. wimax_device_proxy.cc
  591. wimax_device_proxy.h
  592. wimax_device_proxy_interface.h
  593. wimax_manager_proxy.cc
  594. wimax_manager_proxy.h
  595. wimax_manager_proxy_interface.h
  596. wimax_network_proxy.cc
  597. wimax_network_proxy.h
  598. wimax_network_proxy_interface.h
  599. wimax_provider.cc
  600. wimax_provider.h
  601. wimax_provider_unittest.cc
  602. wimax_service.cc
  603. wimax_service.h
  604. wimax_service_unittest.cc
  605. wimax_unittest.cc
  606. wpa_supplicant.cc
  607. wpa_supplicant.h