<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title>낭만 상민이의 不老區</title>
		<link>http://www.microstrong.pe.kr/tt/</link>
		<description>재미있는 인생살기 대책위원회......

방명록 써도 뭐라안할께...</description>
		<language>ko</language>
		<pubDate>Wed, 21 Mar 2012 02:42:43 +0900</pubDate>
		<item>
			<title>Developing SWT applications using Eclipse</title>
			<link>http://www.microstrong.pe.kr/tt/entry/Developing-SWT-applications-using-Eclipse</link>
			<description>Developing SWT applications using Eclipse&lt;br /&gt;
While SWT is integrated as part of the Eclipse plug-in API, for standalone application development it is best to develop against the SWT standalone download. This document will help you get set up.&lt;br /&gt;
Eclipse 를 사용한 SWT 어플리케이션 개발.&lt;br /&gt;
개별 어플리케이션을 개발 하는데 있어서 Eclipse plug-in API 로 통합하느것이 SWT 를 따로 설치하는데 반하여 개발에 최선의 결과를 가져올 것이다.&lt;br /&gt;
이 문서는 설치 하는데 도움을 줄것이다.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First, download the .zip of SWT for your platform from the SWT homepage.&lt;br /&gt;
먼저 당신의 플렛폼에 맞는 SWT 의 .zip 파일을 SWT 홈페이지에서 다운 받아라. &lt;br /&gt;
&lt;br /&gt;
The SWT .zip file can then be imported into your workspace. In the File menu, choose Import and select the Existing Projects Into Workspace wizard. (In newer versions of eclipse, you can find Existing Projects Into Workspace in the General category).&lt;br /&gt;
SWT .zip 파일은 당신의 workspace 로 불러 들일수 있습니다. File 메뉴에서 Import 를 선택하고 Existing Projects Into Workspace wizard 를 선택하라.(새버전의 eclipse 에서는 Import 에서 General 카테고리에서 찾을수 있을것이다.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://eclipse.org/swt/images/existing.png&quot;&gt; &lt;img src=&quot;http://eclipse.org/swt/images/existing.png&quot;&gt; &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Direct the wizard to the location where you downloaded the .zip file. This will create a project called org.eclipse.swt in your workspace.&lt;br /&gt;
.zip 파일을 다운로드 받은 위치를 선택한다. 그러면 당신의 work space 에  org.eclipse.swt 라는 프로젝트가 생성 될것이다.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://eclipse.org/swt/images/add-project.png&quot;&gt; &lt;img src=&quot;http://eclipse.org/swt/images/add-project.png&quot;&gt; &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
With the SWT project as a dependency, you can now benefit from Eclipse features such as the Javadoc view and code assist.&lt;br /&gt;
SWT 프로젝트에 의지함으로서 javaDow view 나 코드 어시스트 같은 Eclipse 특성의 이익을 얻을수 있다.&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;http://eclipse.org/swt/images/swt-example.png&quot;&gt; &lt;img src=&quot;http://eclipse.org/swt/images/swt-example.png&quot;&gt; &lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Now you can run any main class in your project by selecting the class and then selecting Run &gt; Run As &gt; Java Application&lt;br /&gt;
&lt;br /&gt;
자 이제 당신의 프로젝트의 main 클래스를 선택하고 Run &gt; Run As &gt; Java 를 선택 하여 실행 시킬수 있다.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;a href=&quot;URL&quot;&gt;&lt;/a&gt;&lt;a href=&quot;URL&quot;&gt;&lt;/a&gt;&lt;a href=&quot;URL&quot;&gt;&lt;/a&gt;&lt;a href=&quot;URL&quot;&gt;&lt;/a&gt;</description>
			<category>JAVA</category>
			<author> (낭만상민)</author>
			<pubDate>Thu,  8 Dec 2011 00:58:58 +0900</pubDate>
		</item>
		<item>
			<title>MySQL - Tutorial</title>
			<link>http://www.microstrong.pe.kr/tt/entry/MySQL-Tutorial</link>
			<description>이글은 http://www.vogella.de/articles/MySQL/article.html 를 번역한 글입니다.&lt;br /&gt;
&lt;br /&gt;
MySQL - Tutorial&lt;br /&gt;
&lt;br /&gt;
Lars Vogel&lt;br /&gt;
&lt;br /&gt;
Version 0.7&lt;br /&gt;
&lt;br /&gt;
Copyright © 2008 - 2009 Lars Vogel&lt;br /&gt;
&lt;br /&gt;
07.10.2009&lt;br /&gt;
&lt;br /&gt;
MySQL&lt;br /&gt;
&lt;br /&gt;
This article explains how to install MySQL and how to create and query a database.&lt;br /&gt;
이 글은 MySQL 을 어떻게 설치 하고 하나의 database 를 생성하고 질의 하는지에 대한 설명 이다.&lt;br /&gt;
&lt;br /&gt;
This article uses Java 1.6 and MySQL 5.1.&lt;br /&gt;
이 글에서는 Java 1.6 과 MySQL 5.1 을 사용한다.&lt;br /&gt;
&lt;br /&gt;
1. Overview&lt;br /&gt;
&lt;br /&gt;
MySQL is a famous open source database which can be used free of charge. MySQL is a relational database. Web applications frequently are using MySQL for storing persistence data.&lt;br /&gt;
MySQL 무료로 사용할수 있는 잘알려진 공개 소스 database 이다. MySQL 은 관계형 database 이다. 웹 어플리케이션은 data 의 지속적인 보관을 위하여 MySQL 을 자주 사용한다.&lt;br /&gt;
&lt;br /&gt;
This article covers the installation of MySQL and the usage of the database.&lt;br /&gt;
이 글은 MySQL의 설치와 사용에 대해서 다룬다.&lt;br /&gt;
&lt;br /&gt;
To use MySQL with Java see MySQL and Java Tutorial .&lt;br /&gt;
MySQL 과 Java 의 사용은 MySQL and Java Tutorial 를 봐라.&lt;br /&gt;
&lt;br /&gt;
2. Installation&lt;br /&gt;
&lt;br /&gt;
2.1. Windows&lt;br /&gt;
&lt;br /&gt;
Under Windows download the community edition from http://dev.mysql.com/downloads/ . For windows you have installer program available which guides you through the installation process.&lt;br /&gt;
Windows 에서 community edition 을 http://dev.mysql.com/downloads/ (페이지) 로부터 내려 받아라. For Windows 에서 설치 과정에서 안내를 받을수 있는 설치 프로그램을 얻을수 있을 것이다.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you had MySQL previously installed the installation may fail with the following error message:&lt;br /&gt;
만약 아래와 같은 메세지 와 함께 설치 사전 작업이 실패를 한다면:&lt;br /&gt;
&lt;br /&gt;
&quot;Access denied for user 'root'@'localhost'&quot;.&lt;br /&gt;
&lt;br /&gt;
http://www.vogella.de/articles/MySQL/images/installationfail10.gif&lt;br /&gt;
&lt;br /&gt;
In this case de-install MySQL and remove any MySQL data directory from your computer and try again.&lt;br /&gt;
To de-install MySQL use &quot;Add/Remove Programs&quot; in the &quot;Control Panel&quot;. That will also remove the windows services.&lt;br /&gt;
MySQL 을 제거 하고 관련된 Data 디렉 토리를 삭제한후 재시도를 하라.&lt;br /&gt;
재시도는 &quot;Control Panel&quot; 에 있는 &quot;Add/Remove Programs&quot; 을 사용 하라.&lt;br /&gt;
윈도우 서비스 역시 제거 될 것이다.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The data directory is located in the folder &quot;C:\Documents and Settings\All Users\Application Data\MySQL&quot;.&lt;br /&gt;
데이터 디렉토리는 &quot;C:\Documents and Settings\All Users\Application Data\MySQL&quot; 에 위치한다.&lt;br /&gt;
&lt;br /&gt;
2.2. Linux (Ubuntu)&lt;br /&gt;
&lt;br /&gt;
Under Linux (Ubuntu) you can use the following command:&lt;br /&gt;
우분투 리눅스 (데비안 계열도 될듯) 은 아래의 명령을 사용하면 된다.&lt;br /&gt;
sudo apt-get install mysql-server&lt;br /&gt;
&lt;br /&gt;
			&lt;br /&gt;
The installation will asked you questions regarding your desired installation, e.g. the password to use, etc.&lt;br /&gt;
설치는 당신에게 몇가지 물을 것이다. 사용을 위한 패스워드등 (물론 sudo 때문에도 묻겠지...)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
3.  Connecting to MySQL&lt;br /&gt;
&lt;br /&gt;
Once MySQL is installed and running you can connect to your database and perform commands in MySQL.&lt;br /&gt;
설치가 되고 실행을 시키면 당신의 database 에 연결을 해서 명령을 수행할수 있다.&lt;br /&gt;
&lt;br /&gt;
MySQL offers the option to connect to the database via the command line. Under Window, select Start -&gt; Programs -&gt; MySQL -&gt; &quot;your version&quot; -&gt;MySQL Command Line Client. This will a console and ask you for the password of the DB admin.&lt;br /&gt;
MySQL 은 연결을 위하여 Command line 을 통하여 사용할수 있도록 제공한다.&lt;br /&gt;
Windows 환경에서는 select Start -&gt; Programs -&gt; MySQL -&gt; &quot;your version&quot; -&gt;MySQL Command Line Client 를 사용 한다. 이것은 콘솔 환경 으로 제공 되며 DB admin 패스워드를 묻는다.&lt;br /&gt;
&lt;br /&gt;
Under Unix / Linux you can use the following command:&lt;br /&gt;
Unix / Linux 상에서는 아래의 명령어를 사용한다.&lt;br /&gt;
			&lt;br /&gt;
mysql db_name -u user -pmypassword&lt;br /&gt;
		&lt;br /&gt;
4. Create example database&lt;br /&gt;
&lt;br /&gt;
Start the MySQL command line client and paste the following SQL script into it to create a sample database which we can use as an example.&lt;br /&gt;
MySQL 커멘드 라인 클라이언트 를 실행시켜서 아래의 SQL 스크립트를 갖다 붙이면 예제로 사용할수 있는 샘플 데이터 베이스를 생성 시킬수 있다.&lt;br /&gt;
-----------------------------------------------------------------&lt;br /&gt;
create database feedback;&lt;br /&gt;
use feedback;&lt;br /&gt;
CREATE USER sqluser IDENTIFIED BY 'sqluserpw'; &lt;br /&gt;
grant usage on *.* to sqluser@localhost identified by 'sqluserpw'; &lt;br /&gt;
grant all privileges on feedback.* to sqluser@localhost;&lt;br /&gt;
&lt;br /&gt;
CREATE TABLE COMMENTS (&lt;br /&gt;
		id INT NOT NULL AUTO_INCREMENT, &lt;br /&gt;
		MYUSER VARCHAR(30) NOT NULL,&lt;br /&gt;
		EMAIL VARCHAR(30), &lt;br /&gt;
		WEBPAGE VARCHAR(100) NOT NULL, &lt;br /&gt;
		DATUM DATE NOT NULL, &lt;br /&gt;
		SUMMERY VARCHAR(40) NOT NULL,&lt;br /&gt;
		COMMENTS VARCHAR(400) NOT NULL,&lt;br /&gt;
		PRIMARY KEY (ID)&lt;br /&gt;
	);&lt;br /&gt;
&lt;br /&gt;
INSERT INTO COMMENTS values (default, 'lars', 'myemail@gmail.com','http://www.vogella.de', '2009-09-14 10:33:11', 'Summery','My first comment' );&lt;br /&gt;
-----------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
5. Further SQL commands&lt;br /&gt;
&lt;br /&gt;
Please see SQL Tutorial for the usage of SQL commands.&lt;br /&gt;
&lt;br /&gt;
6. Thank you&lt;br /&gt;
&lt;br /&gt;
Please help me to support this article:&lt;br /&gt;
&lt;br /&gt;
 	&lt;br /&gt;
  &lt;br /&gt;
7. Questions and Discussion&lt;br /&gt;
&lt;br /&gt;
Before posting questions, please see the vogella FAQ . If you have questions or find an error in this article please use the www.vogella.de Google Group . I have created a short list how to create good questions which might also help you.&lt;br /&gt;
&lt;br /&gt;
8. Links and Literature&lt;br /&gt;
&lt;br /&gt;
http://www.mysql.com MySQL homepage&lt;br /&gt;
&lt;br /&gt;
http://dev.mysql.com/downloads/ Download link for MySQL&lt;br /&gt;
&lt;br /&gt;
http://forums.mysql.com/ MySQL forum&lt;br /&gt;
</description>
			<category>Database</category>
			<author> (낭만상민)</author>
			<pubDate>Sun, 27 Nov 2011 20:45:07 +0900</pubDate>
		</item>
		<item>
			<title>Happy Birthday, WWW! (번역)</title>
			<link>http://www.microstrong.pe.kr/tt/entry/Happy-Birthday-WWW</link>
			<description>&lt;p&gt;&lt;br /&gt;
It’s been 20 years since British scientist Tim Berners-Lee created the first webpage. &lt;br /&gt;
The World Wide Web has since spawned about one trillion webpages. &lt;br /&gt;
It revolutionised the way we communicate and some people can’t imagine life without it. &lt;br /&gt;
Can you? Email us at &lt;a href=&quot;mailto:learning.english@bbc.co.uk&quot;&gt;learning.english@bbc.co.uk&lt;/a&gt; and tell us how you use the web. Valdirene Ruston reports:&lt;br /&gt;
영국 과학자 Tim Berners-Lee 가 첫 webpage 를 제작한지 20년이 흘럿다. &lt;br /&gt;
World Wide Web 은 엄청나게 뻣어 갓다. &lt;br /&gt;
웹은 사람들의 소통 방법을 혁멱적으로 바꾸었고 어떤이는 웹 없는 생활을 상상하기 조차 힘들어 져버렸다.&lt;br /&gt;
&lt;a href=&quot;mailto:learning.english@bbc.co.uk&quot;&gt;learning.english@bbc.co.uk&lt;/a&gt; 로 당신이 어떤 용도로 web 을 사용하는지 알려 주십시요.&lt;br /&gt;
Valdirene Ruston 리포트:&lt;/p&gt;&lt;p&gt;On Christmas Day 1990, in a laboratory in Switzerland, British physicist Tim Berners-Lee&lt;br /&gt;
finished developing the tools to create the World Wide Web. He was working at the European&lt;br /&gt;
Organisation for Nuclear Research, Cern, in Geneva.&lt;/p&gt;&lt;p&gt;1990년 크리스마스에 스위스에 있는 한 실험실에서 영국인 물리학자인 Tim Berners-Lee가&lt;br /&gt;
월드와이드웹(www) 을 제작할수 있는 툴을 완성했다. 그는 제네바에 위치한 유럽 원자핵 공동 연구소 &lt;br /&gt;
에서 핵연구를 하고 있었다.&lt;/p&gt;&lt;p&gt;His boss gave him the green light to work on the project during his spare time and together&lt;br /&gt;
with the help of his Belgian colleague Robert Cailliau, Tim Berners-Lee produced the world’s&lt;br /&gt;
first webpage.&lt;br /&gt;
그의 상사는 여유 시간에 벨이에인 동료인&amp;nbsp; Robert Cailliau 와 함께 www 툴을 만들어도 된다는 허락을 &lt;br /&gt;
받았었는데 세계에서 첫번째로 웹페이지를 만들게 된것이다.&lt;/p&gt;&lt;p&gt;The experiment heralded a new era because it demonstrated how computers could talk to&lt;br /&gt;
each other through a new language they created called Hyper-Text Markup Language, or&lt;br /&gt;
HTML.&lt;br /&gt;
이 실험은 그들이 개발하고 이름붙인 html 을 이용하여 컴퓨터로 서로간의 의사 소통을 하는 &lt;br /&gt;
방법을 제시 함으로서 새로운 세대를 예고한 것이다. &lt;/p&gt;&lt;p&gt;Currently there might be anything up to a trillion webpages with all sorts of content. People&lt;br /&gt;
buy and sell products and services, make friends through these pages, learn and teach. We&lt;br /&gt;
found many enthusiasts of the web in the streets of London.&lt;br /&gt;
현재 수십조개의 웹페이지가 수많은 내용을 가지고 떠있다. &lt;br /&gt;
사람들은 이 페이지 들을 통하여 제품이나 서비스를 사고 팔고 친구를 사귀며 가르치고 배운다.&lt;br /&gt;
우리는 런던 거리에서 웹을 신봉하는 많은 열혈팬들을 만날수 있다.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;
Man 1: “It means having information in your home with easy access which in the past would&lt;br /&gt;
have only been available in thousands of libraries. So it’s information at your fingertips.”&lt;br /&gt;
남성 1: 웹은 과거에 대형 도서관에가서 만이 누릴수 있었던 정보를 집에서 쉬운 방법으로 영위할수 있음을 의미 합니다.&lt;br /&gt;
정보가 당신 손가락 끝에 있을을 말하지요.&lt;/p&gt;&lt;p&gt;Woman: “Access to a lot of people really. We’ve got a lot of family overseas so we use Skype&lt;br /&gt;
quite a bit.”&lt;br /&gt;
여성 : 많은 사람들과 접속합니다. 우리는 해외에 많은 가족들이 있죠 , 그래서 Skype 를 즐겨 사용하죠.&lt;/p&gt;&lt;p&gt;Man 2: “Information, news, social groups.”&lt;br /&gt;
남성 2: 정보, 뉴스, 소셜그룹...&lt;/p&gt;&lt;p&gt;&lt;br /&gt;
Man 3: “I’m just using it usually for emails and social networking with my friends and well,&lt;br /&gt;
reading newspapers and information. Basically everything!”&lt;br /&gt;
남성 3: 저는 그냥 기본적으로 친구들과 이메일 이나 소셜 네트워크 들 사용하고 뉴스나 정보를 읽는데 사용합니다.&lt;br /&gt;
기본적으로 대부분이죠!&lt;/p&gt;&lt;p&gt;Fortunes were made in the World Wide Web. Many say that Tim Berners-Lee could have&lt;br /&gt;
been a billionaire through his invention but he said that all he wants is to keep the egalitarian&lt;br /&gt;
spirit of the web intact and the medium free to use. Many users share the same ideals.&lt;br /&gt;
WWW 는 부를 가져다 준다. 만은 이들이 Tim Berners-Lee 가 그의 발명품으로 억만장자가 될수 있었다고 말한다.&lt;br /&gt;
하지만 그가 원하는 것은 웹의 평등정신을 유지하길 원하고 사용하는데 보편적으로 무료이길 원한다.&lt;br /&gt;
많은 이들이 이생각에 동조하고 있다.&lt;/p&gt;&lt;p&gt;Man 1: “I think that today it is essential to have an internet connection and that’s going to be a&lt;br /&gt;
real problem in terms of you know, digital divide when some people in the world can’t&lt;br /&gt;
access the internet or when the speed (connection speed) is not enough.”&lt;br /&gt;
남성 1: 제생각에는 현재 인터넷 접속에서 필수적 요소 그리고 여러분들이 알다 시피한 진짜 문제는 &lt;br /&gt;
세계의 어느쪽 사람들은 인터넷을 사용할수 없거나 사용하기에 충분하지 않은 속도로 인한 정보 격차 입니다.&lt;/p&gt;&lt;p&gt;And there are other concerns.&lt;br /&gt;
그리고 다른 견해도 있다.&lt;/p&gt;&lt;p&gt;Woman: “I’m not very keen on that because of all the privacy issues and everything, I’m very&lt;br /&gt;
aware of it. So I try to keep private things private as much as I can.”&lt;br /&gt;
And there are the diehards, who shy away from technology.&lt;br /&gt;
Man 2: “I leave it all to my wife, I hate computers.”&lt;br /&gt;
Valdirene Ruston, BBC Learning English&lt;br /&gt;
여성: 저는 모든 사생활 문제가 걱정입니다. 매우 두려워요. 그래서 가능한한 개인적인 것들을 지키려고 노력하죠.&lt;br /&gt;
웹이 사라지지는 않겠죠. 누가 기술에서 멀어 지겠어요?&lt;br /&gt;
남성 2: 집사람까지 모든것이 떠나버렸어요. 난 컴퓨터가 싫어요.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* 오역이 있을것으로 예상됩니다. 실력 느는 대로 수정하겠습니다.&lt;br /&gt;
* 원문은 BBC Learning English 2010년 12월 23일 기사입니다.&lt;/p&gt;</description>
			<author> (낭만상민)</author>
			<pubDate>Tue,  4 Jan 2011 23:17:07 +0900</pubDate>
		</item>
		<item>
			<title>aaaa</title>
			<link>http://www.microstrong.pe.kr/tt/entry/aaaa</link>
			<description>0119&lt;a href=&quot;http://www.ucertify.com/article/what-are-pbp-and-pp-in-j2me.html&quot;&gt;&lt;br /&gt;
http://www.ucertify.com/article/what-are-pbp-and-pp-in-j2me.html&lt;/a&gt;</description>
			<author> (낭만상민)</author>
			<pubDate>Mon, 18 Oct 2010 17:56:56 +0900</pubDate>
		</item>
		<item>
			<title>OpenSSL Client 기본 가락꾸.</title>
			<link>http://www.microstrong.pe.kr/tt/entry/OpenSSL-Client-%EA%B8%B0%EB%B3%B8-%EA%B0%80%EB%9D%BD%EA%BE%B8</link>
			<description>&lt;p&gt;&lt;a href=&quot;http://www.ibm.com/developerworks/kr/library/l-openssl.html&quot;&gt;http://www.ibm.com/developerworks/kr/library/l-openssl.html&lt;/a&gt; &lt;br /&gt;
의 내용을 바탕으로 초간단 정리 했습니다. &lt;br /&gt;
너무 초간단 정리라 못알아 볼수도...&lt;br /&gt;
사실 보안연결구축 부분은 느낌이 확 오지는 않는데 불행히도 위 url 에 샘플코드도 없군요.&lt;br /&gt;
링크는 있으나 파일이 없다능... &lt;br /&gt;
여튼 대충 연결 하는 가락꾸 정도만 알았으니 자세한건 하나씩 찾아 보면서 알아 가면 될듯 합니다.&lt;/p&gt;&lt;p&gt;*비 보안 연결 구축&lt;/p&gt;&lt;p&gt;1.BIO 객체 생성&lt;/p&gt;&lt;p&gt;BIO *bio;&lt;/p&gt;&lt;p&gt;2. 새로운 연결 생성&lt;/p&gt;&lt;p&gt;BIO_new_connect(&quot;hostname:port&quot;);&lt;/p&gt;&lt;p&gt;3. 연결 성공 확인&lt;/p&gt;&lt;p&gt;BIO_do_connect(bio);&lt;/p&gt;&lt;p&gt;4. 연결에서 읽기&lt;/p&gt;&lt;p&gt;BIO_read(bio, buf, len)&lt;/p&gt;&lt;p&gt;return 값이 0 : 연결 닽힘(blocking), 데이터 사용 할수 없음(non-blocking)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; -1: 에러&lt;br /&gt;
에러 복구 가능 여부 파악 : BIO_should_retry(bio)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;
5. 연결에서 쓰기&lt;/p&gt;&lt;p&gt;BIO_write(bio, buf, len);&lt;br /&gt;
에러 return 값은 read 와 동일함.&lt;/p&gt;&lt;p&gt;6. 연결 닫기&lt;/p&gt;&lt;p&gt;BIO_reset(bio); 객체 재사용가능 &lt;br /&gt;
BIO_free_all(bio); 개체를 완전 release 함. (제휴 소켓 닫는것도 포함)&lt;/p&gt;&lt;br /&gt;
&lt;p&gt;----------------------------------&lt;br /&gt;
* 보안 연결 설정&lt;br /&gt;
-비보안 연결과 다른점은 연결 설정 및 연결 만드는 부분&lt;br /&gt;
-연결 구축후 handshake 가 필요함 &lt;br /&gt;
(서버:인증을 클라이언트에 보냄, &lt;br /&gt;
클라이언트:트러스트 인증에 준하여 이를 확인, 인증 만기 확인)&lt;br /&gt;
-RFC2246 참조 할것. &lt;/p&gt;&lt;p&gt;&lt;br /&gt;
1. SSL 포인터 설정하기&lt;/p&gt;&lt;p&gt;SSL_CTX *ctx = SSL_CTX_NEW(SSLv23_client_method());&lt;br /&gt;
SSL * ssl;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;
2. 트러스트 인증 스토어 로딩 (인증서 인증 못받으면 openssl 은 인증서를 무효한것으로 flag 단다.)&lt;/p&gt;&lt;p&gt;SSL_CTX_load_verify_locations(ctx, &quot;/path/to/TrustStore.pem&quot;, NULL);&lt;br /&gt;
인자: 콘텍스트 포인터, 트러스트 스토어 파일의 경로파일명, 인증서 디렉토리로 가는 경로.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;
3. 인증서 폴더를 준비 하고 사용하기&lt;/p&gt;&lt;p&gt;c_rehash /path/to/certfolder&lt;br /&gt;
SSL_CTX_load_verify_locations(ctx, NULL, &quot;/path/to/certfolder&quot;);&lt;/p&gt;&lt;p&gt;4. 연결 생성 (비연결 2번과 매칭되는 작업)&lt;br /&gt;
bio = BIO_new_ssl_connect(ctx);&lt;br /&gt;
BIO_get_ssl(bio, &amp;amp; ssl);&lt;br /&gt;
SSL_set_mode(ssl, SSL_MODE_AUTO_RETRY);&lt;/p&gt;&lt;p&gt;-SSL_MODE_AUTO_RETRY 옵션: 서버가 새로운 handshake 요청시 OpenSSL 이 이를 뒤에서 핸들링함.&lt;/p&gt;&lt;p&gt;5. 인증서 유효성 여부 검사.&lt;/p&gt;&lt;p&gt;if(SSL_get_verify_result(ssl) != X509_V_OK)&lt;/p&gt;&lt;p&gt;6. 이후 서버와의 통신&lt;br /&gt;
- 비연결과 마찬가지로 BIO_read 와 BIO_write 를 통하여 이루어짐&lt;/p&gt;&lt;p&gt;7. 연결 닫기&lt;br /&gt;
- 비연결과 마찬가지로 BIO_free_all 이나 BIO_reset 호출을 통함.&lt;/p&gt;&lt;p&gt;8. SSL 콘텍스트 구조 릴리즈&lt;br /&gt;
SSL_CTX_free(ctx);&lt;/p&gt;&lt;br /&gt;
</description>
			<category>OpenSSL</category>
			<author> (낭만상민)</author>
			<pubDate>Wed, 29 Sep 2010 11:47:29 +0900</pubDate>
		</item>
	</channel>
</rss>

