Dakshina`s BlogMy views.. |
|
Sunday Dec 10, 2006
Aaj ki seekh: MD5 api
The MD5 algo takes as input a messge of arbitrary length and For more info on MD5 refer to the RFC page http://www.ietf.org/rfc/rfc1321.txt Just a simple program to show usage of MD5 API to calculate a message digest. #include <stdio.h> --Using the md5_calc functions ----
Posted at 04:37PM Dec 10, 2006 by dakshina in Sun | Comments[0]
Tuesday Dec 05, 2006
what i learnt today :encrypt
Today : I came across a utilty ,encrypt for encrypting files. encrypt: usage: encrypt -l | -a <algorithm> [-k <keyfile>] [-i <infile>] These are the algorithms it supports : #encrypt -l Posted at 06:11PM Dec 05, 2006 by dakshina in Sun | Comments[0]
Friday Dec 01, 2006
Getting the output of a shell command from a C program using popen
Sometimes its necessary to access the output of a shell command(more than just the return value) in a C program. One way could be to redirect it to a file and then access it .The other would be by using the popen function. #include<stdio.h> main(){ Posted at 10:52AM Dec 01, 2006 by dakshina in Sun | Comments[0]
Thursday Nov 30, 2006
Configuring apache +SSL service for S10
Just another blog for setting up apache shipped with S10 ...
Note:For creating server side certificates a very detailed help can be found @ http://meljr.com/~meljr/ssl_cert_Sol10.html . And hence I am not rewriting them here. cp /etc/apache2/httpd-conf-example to /etc/apache2/httpd.conf #svcadm disable apache2 ;#svcenable apache2 =============================================================== Posted at 10:58AM Nov 30, 2006 by dakshina in Sun | Comments[2] CGI/Perl script for uploading files
Here's a small perl script that I have used for uplaoding files to a webserver. The location can be changed .Rt now it saves the files to /tmp/upload1 #!/usr/bin/perl
#This has been tested on Solaris only # Can be used to transfer binary files also #For WINDOWS the BINMODE option may be needed Posted at 10:31AM Nov 30, 2006 by dakshina in Sun | Comments[0] SSL Certificate Generation ..
Something I learnt during writing a SSL Client <which I got stuck up after some time :( > Posted at 10:14AM Nov 30, 2006 by dakshina in Sun | Comments[0]
Tuesday Aug 29, 2006
Random notes on virtualization ...
Just am jotting down what i understand ... Have had some exposure to virtualization technologies in the past few months. Virtualization allows a user to run multiple OS'es simultaeously on a single system,in a secure way. On x86 processors, when running in protected mode, there are four privilege levels. The operating system kernel executes in privilege level 0 (also called "supervisor mode") while applications execute in privilege level 3. Privilege levels 1 and 2 are not used. When using virtual machine extensions, there are two classes of software: VMM (Virtual Machine Monitor), also known as "hypervisor", and Guests, which are virtual machines. If we consider Xen ,we call it Domain0 and Guest domains(DomU's or unpriveleged domains). With Sun's LDOMs they are known as Control domain and guest domain respectively. The VMM acts as a host and has a full access to the hardware. It also hosts the management software (like xend incase of Xen and LDOM manager in case of LDOMS),which is responsible for lifecycle management of the guest domains. In the Xen project, running on x86 processors, the guest operating systems run in privilege level 1. Xen 2.0 had initial support for paravirtualization,meaning that guest OS'es would have to be tweaked to run on top of the hypervisor. Xen 3.0 and above support both paravirtualization and full virtualization to leverage the inbuilt hardware support built into the Intel-VT-x and AMD pacifica processors.In either cases,application binaries would run unmodified and they would run in ring 3 . With built-in virtualization extensionsin processors ,the guest operating system code stays unmodified. With Xen running on non-virtualized processors, there is a device model which is based on backend/frontend virtual drivers (also called "split drivers"). The backend is in domain 0, while the frontend is in the unprivileged domains. Only domain 0 has access to the hardware through the unmodified Linux drivers. When running on Intel VT-x or AMD SVM(Secure Virtual machines), we cannot use this IO model, because the guests run unmodified Linux kernels. Posted at 03:20PM Aug 29, 2006 by dakshina in Sun | Comments[0] i'm here !!! My first blog :) @ blogs.sun.com Abt me : I've been @Sun for nearly 2 years now. And i like it here. So hello everybody !! Posted at 11:12AM Aug 29, 2006 by dakshina in Sun | Comments[1] |
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||